-
Notifications
You must be signed in to change notification settings - Fork 172
ci: add Claude issue triage workflow for bug reports #1011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Claude Code | ||
|
|
||
| on: | ||
| issues: | ||
| types: [opened] | ||
|
|
||
| jobs: | ||
| analyze: | ||
| if: github.repository == 'voidzero-dev/vite-plus' | ||
| runs-on: ubuntu-slim | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 10 | ||
| persist-credentials: true | ||
|
|
||
| - name: Run Claude Code | ||
| id: claude | ||
| uses: anthropics/claude-code-action@26ec041249acb0a944c0a47b6c0c13f05dbc5b44 # v1.0.70 | ||
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
| claude_args: --allowedTools "Read,Glob,Grep,Bash(gh:*),Bash(cargo:*),Bash(git:*),WebFetch" | ||
| issue_number: ${{ github.event.issue.number }} | ||
| prompt: | | ||
| Analyze the linked issue and determine if it can be fixed. | ||
|
|
||
| 1. Search the codebase to gather relevant context (related files, existing implementations, tests) | ||
| 2. Determine if the issue is fixable and estimate the complexity | ||
|
|
||
| Post a comment on the issue with: | ||
| - A brief summary of your understanding of the issue | ||
| - Relevant files/code you found | ||
| - Whether this issue is fixable (yes/no/needs clarification) | ||
| - If the issue is unclear, ask for more context | ||
| - If fixable, provide a concrete implementation plan with specific steps | ||
| - Any potential concerns or blockers | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
anthropics/claude-code-actioninvocation is wired toissues.opened, but it does not passgithub_tokenor configureallowed_non_write_users. Per the action's default access-control rules, that means it only runs for actors with write access, so bug reports opened by normal community users will be skipped instead of analyzed. On an OSS repo this makes the workflow effectively dead for the reporters it is supposed to help.Useful? React with 👍 / 👎.