Skip to content

Commit afa3fd6

Browse files
committed
"Update Claude Code Review workflow"
1 parent ecf32a4 commit afa3fd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: write
25-
issues: write
24+
pull-requests: read
25+
issues: read
2626
id-token: write
2727

2828
steps:
@@ -36,8 +36,6 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39-
use_sticky_comment: true
40-
additional_permissions: "actions:read"
4139
prompt: |
4240
REPO: ${{ github.repository }}
4341
PR NUMBER: ${{ github.event.pull_request.number }}
@@ -51,7 +49,9 @@ jobs:
5149
5250
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5351
52+
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
53+
5454
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
55-
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
56-
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
55+
# or https://code.claude.com/docs/en/cli-reference for available options
56+
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:*)"'
5757

0 commit comments

Comments
 (0)