-
Notifications
You must be signed in to change notification settings - Fork 195
63 lines (58 loc) · 1.77 KB
/
Copy pathclaude-code.yml
File metadata and controls
63 lines (58 loc) · 1.77 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
name: Claude Code
on:
pull_request:
types: [opened, synchronize, reopened]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
# Automatic PR review when a PR is opened or updated.
review:
if: github.event_name == 'pull_request'
uses: databricks-eng/eng-dev-ecosystem/.github/workflows/claude-code.yml@main
with:
prompt: "Review this PR. Focus on correctness, error handling, and adherence to the project's Go conventions documented in CLAUDE.md. Post your review as a PR comment. If you have no issues to raise, post a short comment saying the PR looks good."
allowed_tools: |
Bash(pr-diff)
Bash(pr-view)
Bash(pr-comment)
Bash(git log)
Bash(git diff)
Bash(git show)
Bash(grep)
Read
Glob
Grep
claude_args: "--max-turns 100"
# Interactive @claude mentions — Claude can make changes and push commits.
assist:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
uses: databricks-eng/eng-dev-ecosystem/.github/workflows/claude-code.yml@main
with:
allowed_tools: |
Bash(make lint)
Bash(make test)
Bash(make fmt)
Bash(make schema)
Bash(go build ./...)
Bash(go test)
Bash(go vet)
Bash(git add)
Bash(git commit)
Bash(git diff)
Bash(git log)
Bash(git status)
Bash(git show)
Bash(pr-comment)
Bash(pr-push)
Bash(pr-view)
Bash(grep)
Read
Edit
Write
Glob
Grep
claude_args: "--max-turns 100"