Skip to content

Commit 0ee0f4d

Browse files
committed
chore: add workflow for claude issue support
1 parent a7e4b6a commit 0ee0f4d

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Claude Issue Assistant
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
analyze-and-act:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Claude Issue Handler
19+
uses: anthropics/claude-code-action@v1
20+
with:
21+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
22+
# The prompt defines the logic for analyzing and acting on the issue
23+
prompt: |
24+
Analyze the following GitHub issue:
25+
Title: ${{ github.event.issue.title }}
26+
Body: ${{ github.event.issue.body }}
27+
28+
Instructions:
29+
1. If the issue is a question, provide a clear and helpful answer as a comment.
30+
2. If the issue is a feature request or a specific bug fix that you can implement, please:
31+
- Create a new branch.
32+
- Implement the necessary code changes.
33+
- Open a Pull Request referencing this issue.
34+
3. If you need more clarification before acting, ask the user in a comment.
35+
36+
claude_args: |
37+
--max-turns 5
38+
--model claude-4-6-sonnet-latest

0 commit comments

Comments
 (0)