CI Status Check
Steps
Determine target:
- If argument is a PR number, use that
- Otherwise, find PR for current branch:
gh pr list --head $(git branch --show-current) --json number -q '.[0].number' - If no PR found, check latest workflow runs:
gh run list --branch $(git branch --show-current) --limit 3
Show check status:
gh pr checks <PR_NUMBER>If any checks failed, show failed logs:
gh run view <RUN_ID> --log-failed 2>&1 | tail -80Summarize:
- Which jobs passed/failed/pending
- For failures: root cause from logs (error message, not full log)
- Suggest fix if obvious