Handle PR Review Feedback
When user asks to check/fix review feedback on a PR:
Steps
- •
Identify PR — From context (branch, issue number) or ask. Use
mcp_GitHub_pull_request_readwithmethod: get_review_commentsandmethod: get_reviews. - •
Filter actionable — Ignore resolved threads. Focus on unresolved CodeRabbit, CodeQL, or human comments. Skip nitpicks marked "optional" unless user wants them.
- •
Fix — Apply changes per comment. One commit per logical change (conventional:
fix:,chore:). Atomic commits. - •
Push —
git pushto PR branch. - •
Comment — Add PR comment via
mcp_GitHub_add_issue_commentsummarizing:- •What was fixed (with commit SHA)
- •What was intentionally not changed and why
Example comment
markdown
## Review feedback addressed (abc1234) **Fixed:** - [item]: [brief change] - [item]: [brief change] **Not changed:** - [item]: [reason]
Notes
- •Workflow-level
permissions: contents: readsatisfies CodeQL; job-level override only if needed. - •Resolved threads: skip; comment may say "Addressed in commits X to Y".
- •If PR number unknown: infer from
git branch --show-current(e.g.chore/3-lint-rollout→ PR for issue #3) or list PRs for branch.