gh-pr-checks
Display CI check status on pull requests
TLDR
SYNOPSIS
gh pr checks [number | url | branch] [options]
DESCRIPTION
gh pr checks displays the status of CI checks and status checks on a pull request. It shows each check's name, status (pending, passing, failing), and conclusion.The watch mode enables waiting for checks to complete, useful in scripts that need to proceed only after successful CI runs. The command integrates with GitHub Actions and third-party CI services. When using --json, the bucket field categorizes the state into pass, fail, pending, skipping, or cancel.
PARAMETERS
number | url | branch
Pull request number, URL, or branch name (defaults to current branch).--watch
Watch checks until they finish.-i, --interval SECONDS
Refresh interval in seconds when watching (default 10).--fail-fast
Exit watch mode on first check failure.--required
Only show checks that are required.-w, --web
Open the web browser to show details about checks.--json fields
Output JSON with the specified fields. Available fields: bucket, completedAt, description, event, link, name, startedAt, state, workflow.-q, --jq expression
Filter JSON output using a jq expression.-t, --template string
Format JSON output using a Go template.-R, --repo OWNER/REPO
Select another repository using the [HOST/]OWNER/REPO format.
CAVEATS
Only shows checks reported to GitHub. Some CI systems may have delays in reporting. The --fail-fast flag only works in combination with --watch. Watch mode is subject to API rate limits.
SEE ALSO
gh-pr(1), gh-pr-merge(1), gh-run(1), gh-pr-view(1)
