@@ -18,17 +18,14 @@ jobs:
18
18
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
19
19
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
20
20
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
21
- ) &&
22
- (
23
- github.actor == 'ihrpr' ||
24
- github.actor == 'olaservo'
25
21
)
26
22
runs-on : ubuntu-latest
27
23
permissions :
28
24
contents : read
29
25
pull-requests : read
30
26
issues : read
31
27
id-token : write
28
+ actions : read
32
29
steps :
33
30
- name : Checkout repository
34
31
uses : actions/checkout@v4
@@ -41,24 +38,16 @@ jobs:
41
38
with :
42
39
anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
43
40
44
- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
45
- # model: "claude-opus-4-20250514"
46
-
47
- # Optional: Customize the trigger phrase (default: @claude)
48
- # trigger_phrase: "/claude"
49
-
50
- # Optional: Trigger when specific user is assigned to an issue
51
- # assignee_trigger: "claude-bot"
41
+ # Allow Claude to read CI results on PRs
42
+ additional_permissions : |
43
+ actions: read
52
44
53
- # Optional: Allow Claude to run specific commands
54
- # allowed_tools : "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*) "
45
+ # Trigger when assigned to an issue
46
+ assignee_trigger : " claude "
55
47
56
- # Optional: Add custom instructions for Claude to customize its behavior for your project
57
- # custom_instructions: |
58
- # Follow our coding standards
59
- # Ensure all new code has tests
60
- # Use TypeScript for new files
48
+ # Allow Claude to run bash
49
+ # This should be safe given the repo is already public
50
+ allowed_tools : " Bash"
61
51
62
- # Optional: Custom environment variables for Claude
63
- # claude_env: |
64
- # NODE_ENV: test
52
+ custom_instructions : |
53
+ If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block.
0 commit comments