How the resolve-reviews workflow works
mainThe resolve-reviews skill follows a two-phase process to automate PR maintenance:
Phase 1: FETCH & FIX (Synchronous)
- Fetch: Retrieve all unanswered comments using
--unanswered --expanded. - Evaluate: Determine if each comment is a True Positive (fix it), False Positive (dismiss it), Discussion (ask user), or Already Addressed.
- Fix & Commit: Apply code changes, run lint/type-checks, and push a single commit containing all fixes.
- Reply: Post responses to every comment. Use
--resolveonly for closing threads (e.g., false positives), not for new fixes that require verification.
Phase 2: POLL FOR NEW COMMENTS (Looping)
After Phase 1, start a watcher loop using npx agent-reviews --watch --unanswered. This monitors the PR for new comments. If new comments appear, the watcher exits with EXITING WITH NEW COMMENTS, prompting you to repeat the Fetch/Fix/Reply cycle until the watcher reports WATCH COMPLETE.