Skip to content

Commit 7d3ed98

Browse files
committed
chore: fix claude code review editing (#3553)
1 parent a5a0cad commit 7d3ed98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5151
5252
To post your review:
53-
1. First, check if you've already commented on this PR by listing comments: `gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --jq '.[] | select(.user.login == "github-actions[bot]") | {id: .id, created_at: .created_at}' | tail -1`
53+
1. First, check if you've already commented on this PR by listing comments: `gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --jq '.[] | select(.user.login == "claude[bot]") | {id: .id, created_at: .created_at}' | tail -1`
5454
2. If a comment exists (you get a comment ID), update it using: `gh api --method PATCH repos/${{ github.repository }}/issues/comments/COMMENT_ID -f body="YOUR_REVIEW_CONTENT"`
5555
3. If no comment exists, create a new one using: `gh pr comment ${{ github.event.pull_request.number }} --body "YOUR_REVIEW_CONTENT"`
5656
@@ -59,4 +59,3 @@ jobs:
5959
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
6060
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
6161
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh api:*)"'
62-

0 commit comments

Comments
 (0)