Fix PR Comments banner
Weaverse Weaverse

Fix PR Comments

Git community intermediate

Description

Fetch unresolved comments from this branch's pull request and address them systematically.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for Weaverse/.agents, shared by 7 entries in this directory. It describes the repository, not this entry specifically.


description: Fetch and resolve unresolved PR comments

Fix PR Comments

Fetch unresolved comments from this branch's pull request and address them systematically.

Process

  1. **Fetch PR Information**

    # Get PR number for current branch
    gh pr view --json number,url,title,reviews,comments
  2. **List Unresolved Comments**

    • Use gh pr view --comments to see all comments
    • Filter for unresolved/pending comments
    • Identify line-specific code review comments
  3. **Address Each Comment** For each unresolved comment:

    • Read the relevant file and context
    • Understand the reviewer's concern
    • Implement the requested fix
    • Add a reply comment confirming the fix
  4. **Verify Changes**

    • Run formatters and linters
    • Ensure tests still pass
    • Commit changes with reference to comment
  5. **Update PR**

    git push origin HEAD
    gh pr comment  --body "Addressed review comments"

Output Format

For each comment addressed:

✓ Comment #X (file:line): [brief description]
  - Issue: [what was requested]
  - Fix: [what was changed]
  - Files: [list of modified files]

Error Handling

  • If no PR exists for current branch, inform user
  • If gh CLI not installed, suggest installation
  • If unable to fetch comments, show error and suggest manual check