pr-fix-loop
PR Fix Loop
Drive a PR to "done" by looping: scan for findings → triage → fix the clear ones → quick-check locally → commit → reply → push → wait for CI → re-scan. Stop when CI is green and no actionable finding remains, or when something needs your call.
A PR that is already green, mergeable, or marked ready to merge can still enter this loop when the user asks for a final fix pass. Do not skip preflight or scans just because the current PR state looks clean; run the same CI/comment/bot scan once, then stop immediately if nothing actionable is found.
This is the author's side of code review: instead of producing findings, it closes them out. Every
gh command the loop needs — repo context, CI status and checks --watch, the GraphQL review-thread
query, the reply API, CI-log fetch, and the per-round commit — lives in
references/gh-loop.md.
Prerequisite: gh installed and authenticated (gh auth status).