Address review comments on a pull request
/plugin marketplace add synaptiai/synapti-marketplace/plugin install gh-workflow@synapti-marketplace<pr-number>Systematically address review feedback on a pull request.
Tool Usage: This workflow uses the AskUserQuestion tool to clarify ambiguous feedback, confirm proposed fixes, and get approval before pushing changes.
Get repository info for API calls:
# Get owner/repo dynamically - never hardcode
REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
Fetch PR details and reviews:
gh pr view $ARGUMENTS --json title,headRefName,state,reviews
Fetch review comments:
gh api repos/$REPO/pulls/$ARGUMENTS/comments
Checkout PR branch (if not already on it):
git fetch origin {headRefName}
git checkout {headRefName}
Create checklist of all feedback items to address
For each comment:
If feedback is ambiguous, use the AskUserQuestion tool to clarify:
If you disagree with feedback, use the AskUserQuestion tool:
Option 1: "Implement the suggested change anyway"
Option 2: "Push back with explanation"
Option 3: "Discuss further before deciding"
Make the necessary changes
Commit with a descriptive message
Preview response and get approval using the AskUserQuestion tool:
Before pushing, show the summary of changes and response comment:
Do not push without explicit approval.
Verify changes before pushing:
Push changes:
git push
Post summary comment:
gh pr comment $ARGUMENTS --body "RESPONSE"
Use this structure for the summary comment:
## Addressed Review Feedback
Thanks for the review! Here's what I've addressed:
### Changes Made
**1. [Feedback summary]**
- [What was changed]
- Commit: `abc1234`
**2. [Feedback summary]**
- [What was changed]
- Commit: `def5678`
### Discussion Points
> [Quote reviewer comment if needs discussion]
[Your response or explanation]
### Not Addressed (if any)
- **[Item]**: [Reason - needs clarification / out of scope / disagree because X]
Use descriptive messages that reference the feedback:
# Good - specific and clear
git commit -m "fix: correct broken link per review feedback"
git commit -m "fix: update validation logic as suggested"
git commit -m "docs: clarify usage instructions per review"
# Bad - vague and unhelpful
git commit -m "address review comments"
git commit -m "fixes"
git commit -m "updates"