GH-PR-CHECKS(1)
π gh-pr-checks β like a vibe check but for your CI
Hey bestie, welcome to gh-pr-checks(1), straight out of the GitHub CLI manual. Ok so real talk: this is the command that tells you whether your pull request's checks are slaying or absolutely flopping. β¨
gh pr checks [<number> | <url> | <branch>] [flags]
πΈ DESCRIPTION πΈ
It shows you the CI status for one single pull request. That's it, that's the whole gig. π
And here's the thing β if you don't pass an argument at all, it just quietly picks the pull request that belongs to the current branch. Like, it already knows. Main character energy fr.
When you use the --json flag, the output includes a bucket field β that's the little field that takes the state field and categorizes it into one of these: pass, fail, pending, skipping, or cancel. Bucket is lowkey the vibe check of your pipeline. πͺ£
Also there are extra exit codes, and yes this matters:
8: checks are pending β they're still cooking, not done yet β³
β¨ OPTIONS β¨
--fail-fastβ bails out of watch mode the first time a check fails. No point watching the rest of the ship sink, right? π-i,--interval <int>(default10) β how many seconds between refreshes in watch mode. Default is10, so it's looking every ten seconds like an impatient bestie refreshing their notifications.-q,--jq <expression>β filters the JSON output using ajqexpression. So you can pull out exactly the part you care about. π--json <fields>β outputs JSON with the fields you specify. Pick your faves (list is down below π).--requiredβ only shows the checks that are required. Hides the extra noise, keeps the stuff that actually blocks your merge.-t,--template <string>β formats the JSON output using a Go template; seegh help formatting. Cute custom layouts, no cap.--watchβ watches the checks until they finish. Sit there. Stare at it. Refresh refresh refresh. π«Ά-w,--webβ pops open your web browser to show details about the checks. For when you need the full lore.
𧬠OPTIONS INHERITED FROM PARENT COMMANDS
-R,--repo <[HOST/]OWNER/REPO>β picks a different repository using the[HOST/]OWNER/REPOformat. Because sometimes you're being nosy about someone else's repo, and that's valid. π
π¦ JSON FIELDS π¦
Here's the full menu of fields you can ask for with --json. Copy-paste ready, character for character:
bucket, completedAt, description, event, link, name, startedAt, state,
workflow
π EXIT CODES π
0: successful execution β iconic, everything worked π1: error β something went sideways π2: command canceled β you (or something) hit stop π4: authentication required β gotta log in first, bestie π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. (Yes, that includes that 8 up there for pending checks β don't forget it.)
β SEE ALSO β
gh-pr(1)β the parent command, go say hi π
Later bestie! π§ This page is from GitHub CLI v2.102.0, dated Oct 2026. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms