Skip to content

Commit b184042

Browse files
committed
feat: add issue triage workflow for automated issue management
1 parent 7b0a2f9 commit b184042

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Issue Triage
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
id-token: write
12+
steps:
13+
- uses: anthropics/claude-code-action@v1
14+
with:
15+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
16+
prompt: |
17+
REPO: ${{ github.repository }}
18+
ISSUE NUMBER: ${{ github.event.issue.number }}
19+
TITLE: ${{ github.event.issue.title }}
20+
BODY: ${{ github.event.issue.body }}
21+
AUTHOR: ${{ github.event.issue.user.login }}
22+
23+
Analyze this new issue and:
24+
1. Determine if it's a bug report, feature request, or question
25+
2. Assess priority (critical, high, medium, low)
26+
3. Suggest appropriate labels
27+
4. Check if it duplicates existing issues
28+
29+
Based on your analysis, add the appropriate labels using:
30+
`gh issue edit [number] --add-label "label1,label2"`
31+
32+
If it appears to be a duplicate, post a comment mentioning the original issue.
33+
34+
claude_args: |
35+
--allowedTools "Bash(gh issue:*),Bash(gh search:*)"

0 commit comments

Comments
 (0)