| name | gh-check-ci-status |
| description | Check CI/CD status of a pull request including workflow runs and test results. Use when verifying if PR checks are passing or investigating CI failures. |
| category | github |
Check CI Status
Verify CI/CD status of a pull request and investigate failures.
When to Use
- Verifying PR is ready to merge
- Investigating CI failures
- Monitoring long-running CI jobs
- Checking before pushing changes
Quick Reference
gh pr checks <pr>
gh pr checks <pr> --watch
gh pr view <pr> --json statusCheckRollup
gh run view <run-id> --log-failed
gh run rerun <run-id>
Workflow
- Check status: Run
gh pr checks <pr> to see all checks
- Identify failures: Look for ✗ (failed) or ○ (pending)
- View logs: Use
gh run view to see failure details
- Fix locally: Reproduce issue locally and test
- Push fix: Commit and push changes
- Verify: Watch CI with
--watch flag
Common CI Failures
Pre-commit issues (formatting/linting):
just pre-commit-all
git add . && git commit --amend --no-edit
git push --force-with-lease
Test failures:
mojo test tests/
pytest tests/
Workflow validation:
gh workflow view <name>
gh run rerun <run-id>
Status Indicators
✓ - Passing
✗ - Failed
○ - Pending/In progress
- - Skipped
Error Handling
| Problem | Solution |
|---|
| No checks found | PR may not trigger CI (check workflow) |
| Pending forever | Check logs for stuck jobs |
| Auth error | Verify gh auth status |
| API rate limit | Wait or authenticate properly |
Pre-Merge Verification
Before merging:
gh pr checks <pr>
gh pr view <pr>
gh pr diff <pr>
References
- See
.github/workflows/ for CI configuration
- See CLAUDE.md for development workflow