Loading...
Loading...
Iterate on a PR until actionable CI passes and high/medium review feedback is addressed. Use for PR CI failures, review feedback, or green-check loops; do not wait for human approval, draft status, or merge gates.
npx skill4agent add hoangsoft90/ai_skills iterate-prghuvscripts/fetch_pr_checks.py| Script | Run | Output |
|---|---|---|
| | JSON: |
| | JSON buckets: |
| | terminal marker plus tab-separated checks |
| | JSON reply results |
failedpendingactionable_pendinghuman_gate_pendingALL_CHECKS_PASSEDCHECKS_DONE_WITH_FAILURESNO_CHECKS_REGISTEREDDRAFT_PR_WITH_NO_CHECKSCHECKS_BLOCKED_BY_REVIEW_GATEgh pr view --json number,url,headRefName,isDraft,reviewDecisionDRAFT_PR_WITH_NO_CHECKSuv run scripts/fetch_pr_feedback.py [--pr NUMBER]| Bucket | Action |
|---|---|
| fix |
| fix |
| ask user which to address |
| skip informational comments |
| skip |
review_bot: trueFound 3 low-priority suggestions:
1. [l] "Consider renaming this variable" - @reviewer in api.py:42
2. [nit] "Could use a list comprehension" - @reviewer in utils.py:18
3. [style] "Add a docstring" - @reviewer in models.py:55
Which should I address? ("1,3", "all", or "none")uv run scripts/fetch_pr_checks.py [--pr NUMBER]| State | Action |
|---|---|
| fix failures |
| wait; poll feedback while waiting |
| report |
| no checks after grace period | report |
| all actionable checks passed | run post-CI feedback check |
isDraftREVIEW_REQUIREDgh run view <run-id> --log-failedgit add <files>
git commit -m "fix: <descriptive message>"
git pushuv run scripts/fetch_pr_checks.pyactionable_pending > 0uv run scripts/fetch_pr_feedback.pyuv run scripts/monitor_pr_checks.pyMonitorToolpersistent: false| Exit | Conditions |
|---|---|
| Success | actionable CI passed; post-CI feedback clean; low-priority choice handled |
| Ask user | same failure after 2 attempts; feedback unclear; infrastructure issue |
| Stop | no PR; branch needs rebase; no checks; draft no-checks; only human gates remain |
ghgh pr view --json number,url,headRefName,isDraft,reviewDecisiongh pr checks --json name,state,bucket,description,linkgh run view <run-id> --log-failedgh api repos/{owner}/{repo}/pulls/{number}/comments