Skip to content

Commit 54adaa0

Browse files
authored
Run claude for PR reviews (#4511)
1 parent c73ef4f commit 54adaa0

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

.github/workflows/claude.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ on:
99
types: [opened, assigned]
1010
pull_request_review:
1111
types: [submitted]
12+
pull_request:
13+
types: [review_requested]
1214

1315
jobs:
1416
claude:
1517
if: |
1618
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
1719
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
1820
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
21+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) ||
22+
(github.event_name == 'pull_request' && github.event.action == 'review_requested')
2023
runs-on: ubuntu-latest
2124
timeout-minutes: 30
2225
permissions:
@@ -35,25 +38,7 @@ jobs:
3538
uses: anthropics/claude-code-action@v1
3639
with:
3740
claude_code_oauth_token: ${{ secrets.CLAUDE_OAUTH_TOKEN }}
38-
# Optional: Customize the trigger phrase (default: @claude)
39-
# trigger_phrase: "/claude"
40-
41-
# Optional: Trigger when specific user is assigned to an issue
4241
assignee_trigger: "pythonitaliabot2"
42+
reviewer_trigger: "pythonitaliabot2"
4343
claude_args: |
4444
--model claude-opus-4-5-20251101
45-
46-
# Optional: Configure Claude's behavior with CLI arguments
47-
# claude_args: |
48-
# --model claude-opus-4-1-20250805
49-
# --max-turns 10
50-
# --allowedTools "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
51-
# --system-prompt "Follow our coding standards. Ensure all new code has tests. Use TypeScript for new files."
52-
53-
# Optional: Advanced settings configuration
54-
# settings: |
55-
# {
56-
# "env": {
57-
# "NODE_ENV": "test"
58-
# }
59-
# }

0 commit comments

Comments
 (0)