address-feedback
Address PR Review Feedback
Find and address all review comments on the PR for the current branch. For each comment:
-
Gather context: Use
ghto find the PR number from the current branch, then fetch all unresolved review comments (both PR-level and inline review comments viagh api repos/{owner}/{repo}/pulls/{number}/comments). Skip already-resolved and outdated threads. Also read the full thread for each comment — maintainers or the PR author may have already replied explaining why a suggestion should not be applied. -
Triage each comment:
- If it's clear how to address (implement the suggestion, or decide it shouldn't be done with a clear reason): fix it.
- If a maintainer or PR author has already weighed in on the thread (e.g. explaining why a suggestion doesn't apply), respect that guidance.
- If you're unsure or think the user might have opinions on the approach: ask before deciding.
-
Fix the code: Make the necessary changes to address each comment.
-
Continue the PR loop: Follow
pushing-commits-to-the-repofrom itsBefore you pushsection. -
Use the canonical close-out: Apply every required reply, reaction, and resolution step from that workflow. For each completed comment, explain what changed or why no change was needed. Then resolve the thread via GraphQL
resolveReviewThread. Leave threads open only when a decision or another person's response is pending.
Always read the relevant code before making changes.