Review unresolved PR comments
Instructions
- Read and follow the complete workflow and
ghcommands. - Process one PR and all actionable comments in its unresolved review threads; include bots, but exclude general PR conversation comments.
- Evaluate each comment against the diff and source context.
- If there is more than one actionable comment, enter batch triage before
making any GitHub mutation. Ask one question at a time, and for each comment
show its recommendation plus a concise suggested reply. Record
Acceptwith+1,Deferwitheyes, andRejectwith-1; do not edit code merely because a comment was accepted. - After all decisions are collected, identify accepted comments that require
code changes and ask explicitly whether to implement them. An
Acceptdecision never authorizes code edits. If approved, implement and validate the requested changes before finalizing reply drafts; if declined, leave code unchanged and continue with the decisions. - Keep every decision and reply draft grouped locally until triage and any authorized implementation are complete. Then show the complete grouped plan and ask for one confirmation to publish it. Do not publish a partial batch.
- Publish each selected reaction and only the exact reply text approved for that target. If a draft is edited, ask for approval of the new exact text before publishing it.
- Never resolve threads or post general PR comments.
Requires an authenticated gh CLI. Use gh api graphql --paginate to collect
threads and comments, and gh api REST calls for reactions and approved replies.
gh auth status
Errors
Surface API, permission, and missing-context failures; never silently skip them.