feat: add CI/CD status integration to wt status#84
Merged
Conversation
Show pipeline status (pass/fail/pending) per branch in the status dashboard. Uses gh CLI for GitHub repos and glab CLI for GitLab. Displays colored indicators: ✓ (pass), ✗ (fail), ● (pending). Opt-in via --ci flag to avoid slowing down the default status command with network calls.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #84 +/- ##
==========================================
+ Coverage 28.53% 29.16% +0.62%
==========================================
Files 26 26
Lines 2600 2712 +112
==========================================
+ Hits 742 791 +49
- Misses 1780 1841 +61
- Partials 78 80 +2
🚀 New features to boost your workflow:
|
The commit status API returns "pending" when there are no statuses, which is the common case for repos using GitHub Actions (which uses check runs instead). Check the check runs API first and only fall back to commit status for older CI integrations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--ciflag towt statusto show CI/CD pipeline status per branchghCLI for GitHub repos (commit status API + check runs API)glabCLI for GitLab repos (pipeline status)cifield when presentTest plan
wt statusworks as before (no CI column without--ci)wt status --cishows CI status for branches with pipelineswt status --ci --format jsonincludescifield in JSON outputgh/glabCLI (no error, no CI column)