Skip to content

Commit 7f2fee5

Browse files
Boshenclaude
andauthored
ci: add Claude issue triage workflow for bug reports (#1011)
## Summary - Adds a GitHub Actions workflow that triggers Claude Code to analyze newly opened bug issues - Security hardened: no user-controlled string interpolation in prompts, shallow clone, no persisted credentials, read-only tool permissions - Only triggers on this repo (not forks), on issue creation, and only for issues labeled `bug` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 57dfd6a commit 7f2fee5

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/claude.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Claude Code
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
analyze:
9+
if: github.repository == 'voidzero-dev/vite-plus'
10+
runs-on: ubuntu-slim
11+
permissions:
12+
contents: read
13+
issues: write
14+
id-token: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
fetch-depth: 10
21+
persist-credentials: true
22+
23+
- name: Run Claude Code
24+
id: claude
25+
uses: anthropics/claude-code-action@26ec041249acb0a944c0a47b6c0c13f05dbc5b44 # v1.0.70
26+
with:
27+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
28+
claude_args: --allowedTools "Read,Glob,Grep,Bash(gh:*),Bash(cargo:*),Bash(git:*),WebFetch"
29+
issue_number: ${{ github.event.issue.number }}
30+
prompt: |
31+
Analyze the linked issue and determine if it can be fixed.
32+
33+
1. Search the codebase to gather relevant context (related files, existing implementations, tests)
34+
2. Determine if the issue is fixable and estimate the complexity
35+
36+
Post a comment on the issue with:
37+
- A brief summary of your understanding of the issue
38+
- Relevant files/code you found
39+
- Whether this issue is fixable (yes/no/needs clarification)
40+
- If the issue is unclear, ask for more context
41+
- If fixable, provide a concrete implementation plan with specific steps
42+
- Any potential concerns or blockers

0 commit comments

Comments
 (0)