AGENT SKILL

ci-status

Check CI status for current branch or PR, show failed job logs

License 许可
MIT
最近更新
2026-11-10
Stars
★ 658
Forks
179

01 前言 Front Matter

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

03 SKILL.md 正文

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:

    gh pr checks <PR_NUMBER>
    
  3. If any checks failed, show failed logs:

    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

04 同仓库更多 Skills