gh pr checks

Check the CI status of a pull request

What it does

gh pr checks lists a pull request's checks (tests, linter, build) with their status and a link to the log. With no number it takes the current branch's PR.

--watch keeps refreshing until every check is done, so you need not keep a GitHub tab open. The command exits with an error if a check failed, which makes it handy in scripts.

Syntax

gh pr checks <number>
gh pr checks <number> --watch

Examples

Related commands

Practise · All commands