Claude Code #4
Workflow file for this run
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 Code | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| issues: | |
| types: [opened, assigned] | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| claude: | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | |
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Claude Code | |
| id: claude | |
| uses: anthropics/claude-code-action@beta | |
| with: | |
| # Authentication configuration | |
| anthropic_api_key: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Mode for interactive PR/issue assistance | |
| mode: "agent" | |
| # Allow bots to trigger Claude | |
| allowed_bots: "codegen-sh,dependabot,renovate" | |
| # Trigger configuration | |
| trigger_phrase: "@claude" | |
| assignee_trigger: "claude-assistant" | |
| label_trigger: "claude" | |
| # Base branch for new feature branches | |
| base_branch: "main" | |
| # Branch prefix for Claude-created branches | |
| branch_prefix: "claude/" | |
| # Maximum conversation turns | |
| max_turns: 10 | |
| # Timeout in minutes | |
| timeout_minutes: 15 | |
| # Optional: Specify model (defaults to Claude Sonnet 4) | |
| # model: "claude-opus-4-1-20250805" | |
| # Custom instructions for project-specific behavior | |
| custom_instructions: | | |
| You are a helpful AI assistant for this awesome-claude-code repository. | |
| Project Guidelines: | |
| - This is a curated collection of Claude Code resources and examples | |
| - Follow Markdown best practices for documentation | |
| - Ensure all links are valid and accessible | |
| - Add appropriate tags and categories for new resources | |
| - Maintain consistent formatting across all files | |
| - Test any code examples before adding them | |
| When helping with issues or PRs: | |
| - Be thorough in your analysis | |
| - Provide specific, actionable suggestions | |
| - Include relevant examples when possible | |
| - Follow the existing project structure and conventions | |
| # Optional: Tools Claude can use | |
| # allowed_tools: "Bash(git status),Bash(git diff),Read,Write,Edit,Grep,LS" |