Skip to content

Commit 7090781

Browse files
committed
Update Claude PR Assistant workflow
1 parent 4cffe57 commit 7090781

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/claude.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Claude PR Assistant
1+
name: Claude Code
22

33
on:
44
issue_comment:
@@ -11,12 +11,12 @@ on:
1111
types: [submitted]
1212

1313
jobs:
14-
claude-code-action:
14+
claude:
1515
if: |
1616
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
1717
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
1818
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2020
runs-on: ubuntu-latest
2121
permissions:
2222
contents: read
@@ -29,8 +29,31 @@ jobs:
2929
with:
3030
fetch-depth: 1
3131

32-
- name: Run Claude PR Action
32+
- name: Run Claude Code
33+
id: claude
3334
uses: anthropics/claude-code-action@beta
3435
with:
3536
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
36-
timeout_minutes: "60"
37+
38+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
39+
# model: "claude-opus-4-20250514"
40+
41+
# Optional: Customize the trigger phrase (default: @claude)
42+
# trigger_phrase: "/claude"
43+
44+
# Optional: Trigger when specific user is assigned to an issue
45+
# assignee_trigger: "claude-bot"
46+
47+
# Optional: Allow Claude to run specific commands
48+
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
49+
50+
# Optional: Add custom instructions for Claude to customize its behavior for your project
51+
# custom_instructions: |
52+
# Follow our coding standards
53+
# Ensure all new code has tests
54+
# Use TypeScript for new files
55+
56+
# Optional: Custom environment variables for Claude
57+
# claude_env: |
58+
# NODE_ENV: test
59+

0 commit comments

Comments
 (0)