Fix Review Points (Loop)
Continuously fix unresolved PR review comments for branch: $ARGUMENTS
Initial Setup
- •Create/access worktree
- •Use
/create-worktree $ARGUMENTS - •Navigate to worktree
bashcd .git-worktrees/$(echo "$ARGUMENTS" | tr '/' '-') pwd # Verify location
- •Use
Review Resolution Cycle
- •
Fetch unresolved comments
bashgh pr view --json reviewThreads --jq '.reviewThreads[] | select(.isResolved == false)'
- •
For each unresolved comment:
- •Analyze the feedback
- •Implement the fix using sub-agent
- •Test the change
- •Commit with reference to the comment
- •
Push and resolve
- •Use
/commit-pushto push changes - •Resolve the review thread
- •Use
- •
Update PR description
- •Reflect fixes made
- •Add summary of changes
- •
Request re-review
bashgh pr comment --body "Changes addressed. Ready for re-review."
Loop
- •Wait and repeat
- •Wait 5 minutes
- •Check for new unresolved comments
- •Repeat steps 2-6 until no unresolved comments remain
Critical Constraints
- •Work ONLY within the worktree
- •Verify location with
pwdbefore each change - •Do not modify code outside the worktree
Completion
- •All review threads resolved
- •PR updated with fix summary
- •Re-review requested