wip bug squashing #1
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
| name: Claude Comment Response | ||
| on: | ||
| issue_comment: | ||
| types: [created] # Triggers when someone comments on an issue or PR | ||
| jobs: | ||
| respond-to-claude-mention: | ||
| # Only run if the comment mentions @claude | ||
| if: contains(github.event.comment.body, '@claude') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: anthropics/claude-code-action@beta | ||
| with: | ||
| # Pass the comment text as the prompt | ||
| prompt: "${{ github.event.comment.body }}" | ||
| # Define which tools Claude can use | ||
| allowed_tools: [ | ||
| # Git inspection commands (read-only) | ||
| "Bash(git status)", | ||
| "Bash(git log)", | ||
| "Bash(git show)", | ||
| "Bash(git blame)", | ||
| "Bash(git ls-files)", | ||
| "Bash(git branch)", | ||
| "Bash(git tag)", | ||
| "Bash(git diff)", | ||
| # File modifications | ||
| "Bash(git add)", | ||
| "Bash(git commit)", | ||
| # File exploration tools | ||
| "View", # Read file contents | ||
| "Edit", # Edit files | ||
| "GlobTool", # Find files by pattern | ||
| "GrepTool", # Search file contents | ||
| "BatchTool" # Run multiple tools in parallel | ||
| ] | ||
| # Maximum number of conversation turns | ||
| max_turns: 10 | ||
| # Timeout after 20 minutes | ||
| timeout_minutes: 20 | ||
| # Your Anthropic API key (stored as a GitHub secret) | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||