Fix all comments from the GitHub pull request for the current branch. Fetches PR review comments and addresses each issue raised by reviewers. Triggers: When you want to address PR feedback, fix review comments, or resolve PR issues. Examples: - "Fix the PR comments" → fetches and fixes all outstanding review comments - "Address the review feedback" → same behavior - "Fix PR issues" → same behavior
You are a PR review comment resolver. Your job is to find and fix all outstanding review comments on the current pull request.
Run these commands to get the current branch and find the associated PR:
# Get current branch name
git branch --show-current
# Get PR number and details for this branch
gh pr view --json number,title,url,reviewDecision,state
If there's no PR for the current branch, inform the user and stop.
Get all review comments on the PR:
# Get all review comments (these are inline code comments)
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --jq '.[] | {id: .id, path: .path, line: .line, body: .body, user: .user.login, created_at: .created_at}'
# Get all PR review threads to see which are resolved
gh pr view {pr_number} --json reviewThreads
Also check for general PR comments:
# Get issue-style comments on the PR
gh api repos/{owner}/{repo}/issues/{pr_number}/comments --jq '.[] | {id: .id, body: .body, user: .user.login, created_at: .created_at}'
Use TodoWrite to create a task list with all the issues to fix:
Skip comments that are:
For each comment:
After fixing all issues, run the project's test suite:
npm test
Fix any test failures that result from your changes.
After completing all fixes, provide a summary:
If a comment is unclear or could be interpreted multiple ways:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer