Skip to content

Commit d85ae7d

Browse files
committed
ci
1 parent 7b4213a commit d85ae7d

3 files changed

Lines changed: 79 additions & 52 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, ready_for_review, reopened]
6+
7+
jobs:
8+
claude-review:
9+
if: github.event.pull_request.user.login == 'zbeyens'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
issues: write
15+
id-token: write
16+
actions: read
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 1
23+
24+
- name: Setup Bun
25+
uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version: latest
28+
29+
- name: Cache bun
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.bun/install/cache
33+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-bun-
36+
37+
- name: Install dependencies
38+
run: bun install
39+
40+
- name: Run Claude Code Review
41+
uses: anthropics/claude-code-action@v1
42+
with:
43+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
44+
45+
prompt: /review
46+
track_progress: true
47+
48+
plugin_marketplaces: |
49+
https://github.com/EveryInc/compound-engineering-plugin.git
50+
https://github.com/udecode/dotai.git
51+
plugins: |
52+
compound-engineering@every-marketplace
53+
dig@dotai
54+
debug@dotai
55+
test@dotai
56+
57+
settings: |
58+
{
59+
"env": {
60+
"BASH_DEFAULT_TIMEOUT_MS": "1800000"
61+
},
62+
"permissions": {
63+
"allow": ["Bash", "Edit", "Glob", "Grep", "Read", "Task", "Write", "WebFetch", "WebSearch"]
64+
}
65+
}
66+
claude_args: |
67+
--max-turns 1000
68+
69+
additional_permissions: |
70+
actions: read
71+

.github/workflows/claude.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
)
2323
runs-on: ubuntu-latest
2424
permissions:
25-
contents: read
26-
pull-requests: read
27-
issues: read
25+
contents: write
26+
pull-requests: write
27+
issues: write
2828
id-token: write
2929
actions: read
3030
steps:
@@ -71,7 +71,7 @@ jobs:
7171
"BASH_DEFAULT_TIMEOUT_MS": "1800000"
7272
},
7373
"permissions": {
74-
"allow": ["Bash"]
74+
"allow": ["Bash", "Edit", "Glob", "Grep", "Read", "Task", "Write", "WebFetch", "WebSearch"]
7575
}
7676
}
7777
claude_args: |
@@ -89,9 +89,9 @@ jobs:
8989
)
9090
runs-on: ubuntu-latest
9191
permissions:
92-
contents: read
93-
pull-requests: read
94-
issues: read
92+
contents: write
93+
pull-requests: write
94+
issues: write
9595
id-token: write
9696
actions: read
9797
steps:
@@ -140,7 +140,7 @@ jobs:
140140
"BASH_DEFAULT_TIMEOUT_MS": "1800000"
141141
},
142142
"permissions": {
143-
"allow": ["Bash"]
143+
"allow": ["Bash", "Edit", "Glob", "Grep", "Read", "Task", "Write", "WebFetch", "WebSearch"]
144144
}
145145
}
146146
claude_args: |

0 commit comments

Comments
 (0)