Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Claude Code

on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]

jobs:
claude:
runs-on: ubuntu-latest
# Only run when @claude is mentioned in issues/comments
if: contains(github.event.comment.body, '@claude') || contains(github.event.issue.body, '@claude')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
prompt: |
${{ github.event.comment.body || github.event.issue.body }}
claude_args: |
--max-turns 10
env:
# Use OAuth token for Claude Max/Pro subscription (no API key needed)
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading