dceoy/github-cli-agent-skills · Archived

gh-pr-checks

View CI/CD check status for a GitHub pull request using gh CLI to monitor build and test results.

First seen Aug 24, 2026

Installation

$ npx skills add dceoy/github-cli-agent-skills --skill gh-pr-checks

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dceoy/github-cli-agent-skills.

npx skills add dceoy/github-cli-agent-skills

Browse all from dceoy/github-cli-agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Grep

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,339 B
  • docs SUMMARY.md 117 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

GitHub PR Checks

When to use

  • The user asks about CI status or checks on a PR.
  • Monitoring build/test results before merge.
  • Waiting for checks to complete.

Inputs to confirm

  • PR number, URL, or branch name (or current branch PR).
  • Whether to watch/wait for completion.
  • Target repo if not current (--repo OWNER/REPO).

Workflow

  1. Verify auth:

``bash gh --version gh auth status ``

  1. View check status:

``bash gh pr checks 123 gh pr checks # current branch PR ``

  1. Watch checks until completion:

``bash gh pr checks 123 --watch gh pr checks 123 --watch --fail-fast ``

  1. Get JSON output for scripting:

``bash gh pr checks 123 --json name,state,conclusion ``

  1. View only required checks:

``bash gh pr checks 123 --required ``

Examples

# Check current PR status
gh pr checks

# Watch until all checks complete
gh pr checks 123 --watch

# Exit on first failure while watching
gh pr checks 123 --watch --fail-fast

# View in browser
gh pr checks 123 --web

# Get JSON with bucket categorization
gh pr checks 123 --json name,state,bucket --jq '.[] | select(.bucket == "fail")'

Flags reference

Flag Description
--watch Watch checks until they finish
--fail-fast Exit watch on first failure
-i, --interval Refresh interval in seconds (default 10)
--required Show only required checks
--json Output JSON (fields: bucket, name, state, etc.)
-w, --web Open checks in browser

Exit codes

  • 0: All checks passed
  • 1: Error occurred
  • 8: Checks still pending

Notes

  • The bucket JSON field categorizes state into: pass, fail, pending, skipping, cancel.
  • Use --required to focus on blocking checks.
  • --watch is useful in CI scripts waiting for dependent checks.

References