BBC2-24 add bb pr checks#28
Open
b2l wants to merge 1 commit into
Open
Conversation
Show CI check statuses for a pull request's head commit.
- `bb pr checks [<id>]` prints per-check rows (icon, name, description,
URL) plus a summary line (N passed, M failed, K pending)
- Exit code reflects overall state: 0=all pass, 1=any failed/stopped,
2=any in-progress with no failures
- JSON mode outputs { checks: [...], summary: { passed, failed, pending } }
- Defaults to the PR for the current branch (same as view/diff/comment)
- Backend: listPullRequestStatuses via GET /pullrequests/{id}/statuses
with pagination, 6 tests covering all states, missing fields, errors
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
bb pr checks [<id>]— show CI check statuses for a PR's head commitN passed, M failed, K pending0= all pass,1= any failed/stopped,2= any in-progress with no failures{ checks: [...], summary: { passed, failed, pending } }Test plan
bun test— 161 pass, 0 failbun run lint— cleanbb pr checks <id>on a PR with CI checksbb pr checks(current branch detection)bb pr checks --json <id>structured outputbb pr checks <green-pr>; echo $?→ 0