From 932d34c2f4320908091b9bfcea25ce4212481335 Mon Sep 17 00:00:00 2001 From: MasterPtato Date: Wed, 26 Nov 2025 17:01:56 -0800 Subject: [PATCH] chore: fix claude code review editing --- .github/workflows/claude-code-review.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b73f1b885e..8acd9e251d 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -50,7 +50,7 @@ jobs: Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback. To post your review: - 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` + 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` 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"` 3. If no comment exists, create a new one using: `gh pr comment ${{ github.event.pull_request.number }} --body "YOUR_REVIEW_CONTENT"` @@ -59,4 +59,3 @@ jobs: # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://docs.claude.com/en/docs/claude-code/cli-reference for available options 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:*)"' -