-
Notifications
You must be signed in to change notification settings - Fork 266
67 lines (60 loc) · 2.16 KB
/
claude.yml
File metadata and controls
67 lines (60 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
(github.event_name == 'workflow_dispatch') ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest-16-cores
permissions:
contents: read
actions: read
pull-requests: write
issues: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 1
persist-credentials: false
- name: Install Qlty CLI
uses: qltysh/qlty-action/install@a19242102d17e497f437d7466aa01b528537e899
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@2fcdc490d667999e01ddbbf0f2823181beef6b39
with:
toolchain: stable
- name: Cache Rust
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
- name: Type check
run: cargo check
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@28f83620103c48a57093dcc2837eec89e036bb9f # beta
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
use_commit_signing: true
additional_permissions: |
actions: read
allowed_tools: |
mcp__github__create_pull_request
mcp__github__create_issue
WebFetch(domain:docs.qlty.sh)
Bash(git:*)
Bash(cargo:*)
Bash(TRYCMD=overwrite cargo:*)
Bash(INSTA_UPDATE=always cargo:*)
Bash(npm install:*)
Bash(npm test:*)
Bash(qlty:*)