Skip to main content

Command referencegh pr checks

gh pr checks command (Linux & Windows / GitHub CLI)

Linux & WindowsGitHub CLIgitbeginner

What it does

Show GitHub Actions and status-check results for a pull request. When people search for gh pr checks, they usually want practical GitHub CLI flags, safe examples, and how this subcommand fits everyday PR and repo workflows on Linux, Windows, and macOS. Syntax, options, and copyable examples are below.

Show GitHub Actions and status-check results for a pull request.

Syntax

gh pr checks [<number> | <url> | <branch>] [flags]

Common options

Flag / optionMeaning
--watchWatch checks until they finish.
--fail-fastStop watching when a required check fails.
--requiredShow only required checks when supported.

Practical examples

Checks for current PR

gh pr checks

Lists check names and pass/fail state.

Watch CI

gh pr checks --watch

Refreshes until checks complete.

Specific PR

gh pr checks 123

Shows checks for pull request 123.

Common mistakes

  • Merging while checks are still pending.
  • Confusing job names from `gh run list` with the aggregated PR checks view.

FAQ

What does gh pr checks do in GitHub CLI?

Show GitHub Actions and status-check results for a pull request.

Does gh pr checks work on Windows and Linux?

Yes. The GitHub CLI (`gh`) runs on Linux, Windows, and macOS with the same subcommand syntax after you authenticate with `gh auth login`.

What is a practical gh pr checks example?

Try `gh pr checks` — Lists check names and pass/fail state.

Do I need a token in the command line for gh pr checks?

Prefer `gh auth login` so credentials stay in the system keyring or secure storage. Avoid pasting personal access tokens into shell history.

Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.