mirror of
https://github.com/librespeed/speedtest.git
synced 2026-10-21 15:51:14 +00:00
ci: add the mention workflow
This commit is contained in:
parent
6ad191f59f
commit
fd15616d0a
1 changed files with 31 additions and 0 deletions
31
.github/workflows/claude.yml
vendored
Normal file
31
.github/workflows/claude.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Claude Code
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
jobs:
|
||||
claude:
|
||||
if: contains(github.event.comment.body, '@claude')
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
id-token: write
|
||||
actions: read
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/create-github-app-token@v1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.VANDAME_APP_ID }}
|
||||
private-key: ${{ secrets.VANDAME_APP_PRIVATE_KEY }}
|
||||
- uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
github_token: ${{ steps.app-token.outputs.token }}
|
||||
claude_args: "--max-turns 10"
|
||||
Loading…
Add table
Add a link
Reference in a new issue