LinuxCommandLibrary

gh-pr-checks

Display CI check status on pull requests

TLDR

View PR checks

$ gh pr checks
copy
View specific PR checks
$ gh pr checks [pr-number]
copy
Watch checks until complete
$ gh pr checks --watch
copy
Fail on check failure
$ gh pr checks --fail-fast
copy
Require specific check
$ gh pr checks --required
copy

SYNOPSIS

gh pr checks [pr-number] [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.

PARAMETERS

PR-NUMBER

Pull request number (defaults to current branch).
--watch
Wait and watch for checks to complete.
--interval SECONDS
Refresh interval when watching (default 10s).
--fail-fast
Exit immediately if any check fails.
--required
Only show required checks.
--help
Display help information.

CAVEATS

Only shows checks reported to GitHub. Some CI systems may have delays in reporting. Watch mode subject to API rate limits.

HISTORY

gh pr checks is part of GitHub CLI's pull request commands, reflecting the importance of CI/CD in modern development workflows.

SEE ALSO

gh-pr(1), gh-pr-merge(1), gh-run(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community