From agentic-swe
Check CI/CD status for a branch or PR with structured reporting.
npx claudepluginhub agentic-swe/agentic-swe --plugin agentic-swe# /ci-status
Check CI/CD pipeline status for a branch or pull request with structured reporting.
## Prompt
You are checking CI/CD status. Query GitHub for check runs and report structured results.
Arguments: `$ARGUMENTS`
- If a PR number or URL is provided, check that PR's status.
- If a branch name is provided, check the latest commit's status on that branch.
- If no arguments, check the current branch's latest push.
### Procedure
1. **Identify target**:
- If PR: `gh pr view <number> --json statusCheckRollup,mergeable,mergeStateStatus,state`
- If branch: `gh api repos/{owner}/...Check CI/CD pipeline status for a branch or pull request with structured reporting.
You are checking CI/CD status. Query GitHub for check runs and report structured results.
Arguments: $ARGUMENTS
Identify target:
gh pr view <number> --json statusCheckRollup,mergeable,mergeStateStatus,stategh api repos/{owner}/{repo}/commits/{branch}/status and gh api repos/{owner}/{repo}/commits/{branch}/check-runsgit branch --show-current, then query as above.Collect check results:
Assess mergeability (PR only):
Detect actionable issues:
# CI Status
## Target
- **Type**: PR #<number> | Branch: <name>
- **Commit**: <sha (short)>
- **Overall**: PASSING | FAILING | PENDING | NO_CHECKS
## Check Runs
| Name | Status | Conclusion | Duration | Link |
|------|--------|------------|----------|------|
| ... | ... | ... | ... | ... |
## Mergeability (PR only)
- **Mergeable**: yes | no | blocked | unknown
- **Required checks**: <passing count>/<total count>
- **Review status**: approved | changes_requested | pending | none
- **Blockers**: <list or "none">
## Action Items
- <specific next steps if any checks failed or are pending>
gh CLI is not authenticated, report BLOCKED with "GitHub CLI not authenticated".NO_CHECKS — do not fabricate status.