Fetch PR review feedback, then walk through each item interactively so the author can decide how to address it.
Input: $ARGUMENTS
Instructions
1. Fetch Feedback
- Get PR details using
gh pr view <pr-number> - Fetch review comments using
gh api repos/{owner}/{repo}/pulls/{number}/comments(inline) andgh api repos/{owner}/{repo}/pulls/{number}/reviews(summaries) - If a reviewer name was provided, filter to only their comments
- Read the relevant code for each comment
2. Assess
Summarize: what are the key themes, which items are quick wins, and which might warrant pushback?
3. Walk Through Each Item
Go through items in order of significance. For each:
- Quote the feedback and show the relevant code
- Offer 2-4 approaches via
AskUserQuestion, including "push back" when appropriate - Execute the chosen approach — make the change, or draft a response
- Move to the next item
4. Wrap Up
Summarize changes made, any drafted responses, and suggest a commit message.