@@ -2,13 +2,13 @@ name: Claude Code
22
33on :
44 issue_comment :
5- types : [created]
5+ types : [ created ]
66 pull_request_review_comment :
7- types : [created]
7+ types : [ created ]
88 issues :
9- types : [opened, assigned]
9+ types : [ opened, assigned ]
1010 pull_request_review :
11- types : [submitted]
11+ types : [ submitted ]
1212
1313jobs :
1414 claude :
2727 steps :
2828 - name : Checkout repository
2929 uses : actions/checkout@v4
30+ - uses : ./.github/actions/setup-rust
31+ - name : Install uv
32+ uses : spiraldb/actions/.github/actions/setup-uv@0.14.0
3033 with :
31- fetch-depth : 1
34+ sync : false
3235
3336 - name : Run Claude Code
3437 id : claude
@@ -39,26 +42,24 @@ jobs:
3942 # This is an optional setting that allows Claude to read CI results on PRs
4043 additional_permissions : |
4144 actions: read
42-
45+
4346 # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4447 # model: "claude-opus-4-20250514"
45-
48+
4649 # Optional: Customize the trigger phrase (default: @claude)
4750 # trigger_phrase: "/claude"
48-
51+
4952 # Optional: Trigger when specific user is assigned to an issue
5053 # 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-
54+
55+ allowed_tools : " Bash(cargo nextest:*),Bash(cargo check:*),Bash(cargo clippy:*),Bash(cargo fmt:*),Bash(uv run:*) "
56+
57+
5558 # 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-
59+ custom_instructions : " You have also been granted tools:
60+ - for editing files and running cargo commands (cargo nextest, cargo check, cargo clippy, cargo fmt).
61+ - uv for running pytest (e.g. via uv run --all-packages pytest)"
62+
6163 # Optional: Custom environment variables for Claude
6264 # claude_env: |
6365 # NODE_ENV: test
64-
0 commit comments