1919 (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2020 runs-on : ubuntu-latest
2121 permissions :
22- contents : read
23- pull-requests : read
24- issues : read
22+ contents : write
23+ pull-requests : write
24+ issues : write
2525 id-token : write
2626 actions : read # Required for Claude to read CI results on PRs
2727 steps :
@@ -39,26 +39,18 @@ jobs:
3939 # This is an optional setting that allows Claude to read CI results on PRs
4040 additional_permissions : |
4141 actions: read
42-
43- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
44- # model: "claude-opus-4-20250514"
45-
46- # Optional: Customize the trigger phrase (default: @claude)
47- # trigger_phrase: "/claude"
48-
49- # Optional: Trigger when specific user is assigned to an issue
50- # assignee_trigger: "claude-bot"
51-
52- # Optional: Allow Claude to run specific commands
53- # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
42+
43+ model : " claude-opus-4-20250514"
44+
45+ allowed_tools : " Bash(go:*),Bash(golangci-lint:*),Bash(make:*),View,GlobTool,GrepTool,BatchTool,mcp__github"
46+
5547 # Optional: Add custom instructions for Claude to customize its behavior for your project
56- # custom_instructions: |
57- # Follow our coding standards
58- # Ensure all new code has tests
59- # Use TypeScript for new files
60-
61- # Optional: Custom environment variables for Claude
62- # claude_env: |
63- # NODE_ENV: test
48+ custom_instructions : |
49+ Follow our coding standards
50+ Ensure tests and lints pass before making commits or PRs
51+ Run 'make test' to verify all tests pass
52+ Use Go conventions and best practices
53+ When reviewing code: provide brief summary of changes,
54+ list concerns as bullets (keep short and understandable),
55+ end with approval status using red/green icons for visibility.
6456
0 commit comments