|
9 | 9 | types: [opened, assigned] |
10 | 10 | pull_request_review: |
11 | 11 | types: [submitted] |
| 12 | + pull_request: |
| 13 | + types: [review_requested] |
12 | 14 |
|
13 | 15 | jobs: |
14 | 16 | claude: |
15 | 17 | if: | |
16 | 18 | (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || |
17 | 19 | (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || |
18 | 20 | (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') |
20 | 23 | runs-on: ubuntu-latest |
21 | 24 | timeout-minutes: 30 |
22 | 25 | permissions: |
|
35 | 38 | uses: anthropics/claude-code-action@v1 |
36 | 39 | with: |
37 | 40 | 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 |
42 | 41 | assignee_trigger: "pythonitaliabot2" |
| 42 | + reviewer_trigger: "pythonitaliabot2" |
43 | 43 | claude_args: | |
44 | 44 | --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