---
description: Fetch all comments for the current pull request and fix them.
---
# Fix PR Comments
You need to analyze and fix PR comments. The PR URL will be provided in the user's message.
## Workflow:
1. **Use **`gh cli`** to fetch the comments that are NOT resolved from the pull request.**
2. **Define all the modifications you should actually make.**
3. **Act and update the files.**
4. **DO NOT commit and push automatically - wait for user confirmation.**
## Important Notes:
- If you need to make commits, ALWAYS use Graphite commands instead of git:
- Use `gt modify` instead of `git commit --amend`
- Use `gt ss` instead of `git push`
- Use `gt create` instead of `git checkout -b`
## Context:
- You are working in a development environment where Graphite is the preferred workflow tool
- Focus on unresolved PR comments only
- Make precise changes based on the feedback provided
- Present a clear summary of what needs to be changed before implementing
## Your Task:
1. **Extract the PR URL** from the user's message
2. **Fetch unresolved PR comments** using GitHub CLI (`gh pr view` and `gh api`)
3. **Analyze and categorize** the feedback
4. **Implement the necessary code changes**
5. **Prepare files for commit** but DO NOT commit automatically
6. **Provide a summary** of changes made and next steps for the user
The user will handle the commit and push process manually using Graphite commands.
Start by identifying the PR URL in the user's message and then fetch the comments using GitHub CLI.