Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 66af5a0

Browse files
hyochanclaude
andcommitted
chore(commands): add individual reply instructions to review-pr skill
Add explicit gh api endpoint for replying to individual PR review comments instead of posting general review comments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e130706 commit 66af5a0

1 file changed

Lines changed: 29 additions & 7 deletions

File tree

.claude/commands/review-pr.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,32 @@ Fixed in abc1234 along with other review items.
6060

6161
## Workflow
6262

63-
1. Fetch PR comments: `gh pr view <number> --comments`
64-
2. Review each comment and understand the requested change
65-
3. Make the necessary code changes
66-
4. Run relevant build commands based on changed files
67-
5. Commit with descriptive message referencing the review
68-
6. Push changes
69-
7. Reply to each comment with the fix commit hash (no backticks!)
63+
1. Fetch PR review comments (code-level comments):
64+
65+
```bash
66+
gh api repos/{owner}/{repo}/pulls/{number}/comments
67+
```
68+
69+
This returns individual review comments with their `id` fields needed for replies.
70+
71+
2. Also fetch general PR comments if needed:
72+
73+
```bash
74+
gh pr view <number> --comments
75+
```
76+
77+
3. Review each comment and understand the requested change
78+
79+
4. Make the necessary code changes
80+
81+
5. Run relevant build commands based on changed files
82+
83+
6. Commit with descriptive message referencing the review
84+
85+
7. Push changes
86+
87+
8. Reply to **each individual review comment** using the comment's `id`:
88+
```bash
89+
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/replies -f body="Fixed in abc1234."
90+
```
91+
**IMPORTANT:** Always reply directly to individual comments, NOT as a general PR review comment. Use the `/pulls/comments/{id}/replies` endpoint, NOT `gh pr review --comment`.

0 commit comments

Comments
 (0)