Loading...
Loading...
Monitors a PR's CI checks and review comments until all pass and issues are resolved. Use when watching CI status, waiting for checks to pass, or fixing CI errors on a pull request.
npx skill4agent add onekeyhq/app-monorepo 1k-monitor-pr-ci$ARGUMENTS$ARGUMENTS$ARGUMENTS$ARGUMENTSgh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number'[Check N/30]gh pr checks <PR_NUMBER>gh pr view <PR_NUMBER> --json reviews,comments,reviewDecision
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments --jq '.[] | {user: .user.login, body: .body, path: .path, line: .original_line, created_at: .created_at}'[Check 3/30]
CI Status:
| Check | Status | Duration |
|------------------|---------|----------|
| lint (24.x) | pass | 5m34s |
| unittest (24.x) | pending | - |
Reviews: 1 new comment from @reviewer| CI Status | Reviews | Action |
|---|---|---|
| Any fail | - | Auto-fix CI failure (Step 3) |
| Any pending | New comments | Show comments to user, keep waiting |
| Any pending | No new comments | Wait 60s, re-check |
| All pass | New comments | Show comments to user (Step 4) |
| All pass | No new comments | Done (Step 5) |
gh run view <RUN_ID> --log-failed 2>&1 | tail -100fix: resolve CI <check-name> failureNew review comment from @reviewer:
File: src/views/Example.tsx:42
> Consider using useCallback here to prevent re-renders
Review decision: CHANGES_REQUESTEDAll CI checks passed!
| Check | Status | Duration |
|------------------|--------|----------|
| lint (24.x) | pass | 5m34s |
| unittest (24.x) | pass | 4m42s |
| CodeQL | pass | 2m7s |
Review status: approved / no reviews / changes requested
PR: <URL>[Check N/30]gh run rerun