"Update Claude Code Review workflow"

This commit is contained in:
ulsklyc
2026-05-08 19:39:13 +02:00
parent d9faa37ee5
commit 123592d5a3
+20 -6
View File
@@ -1,15 +1,27 @@
name: Claude Code Review
on:
pull_request_target:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
# Optional: Only run on specific file changes
# paths:
# - "src/**/*.ts"
# - "src/**/*.tsx"
# - "src/**/*.js"
# - "src/**/*.jsx"
jobs:
claude-review:
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
pull-requests: read
issues: read
id-token: write
@@ -24,7 +36,9 @@ jobs:
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: >
Review this pull request for bugs, logic errors, security issues, and adherence to project
conventions. Focus only on high-confidence issues that genuinely matter. Skip style nitpicks.
Post your findings as inline review comments on the relevant lines.
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
plugins: 'code-review@claude-code-plugins'
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://code.claude.com/docs/en/cli-reference for available options