ci-status · git:20260616.784c411 · 2026-06-16 · sha256 6e1cb4c59c38b590

ci-status git:20260616.784c411A

Immutable. This exact content never changes and is served at /api/v1/blob/6e1cb4c59c38b590.

---
name: ci-status
description: Check CI status for current branch or PR, show failed job logs
---

# CI Status Check

## Steps

1. 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`

2. Show check status:
   ```bash
   gh pr checks <PR_NUMBER>
   ```

3. If any checks failed, show failed logs:
   ```bash
   gh run view <RUN_ID> --log-failed 2>&1 | tail -80
   ```

4. Summarize:
   - Which jobs passed/failed/pending
   - For failures: root cause from logs (error message, not full log)
   - Suggest fix if obvious