ci(deps): bump the actions-minor-patch group with 2 updates #250
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
| # Lets contributors trigger Claude Code by typing @claude in an issue | |
| # body/title, PR review, PR review comment, or issue comment. Useful | |
| # for "@claude please look at this" / "@claude fix the lint failures" | |
| # style nudges directly from GitHub UI. | |
| # | |
| # Requires the repo secret CLAUDE_CODE_OAUTH_TOKEN to be set (Settings → | |
| # Secrets and variables → Actions → New repository secret). Without | |
| # the secret the action's first step fails with a clear error; the | |
| # workflow does no harm otherwise. | |
| 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: read | |
| pull-requests: read | |
| issues: read | |
| id-token: write | |
| actions: read # Required for Claude to read CI results on PRs | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Claude Code | |
| id: claude | |
| uses: anthropics/claude-code-action@11ba60486e4aec9ddfeafcf4bb3f00b028ac2c16 # v1 | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| # Allow Claude to read CI results on PRs (workflow runs, | |
| # check suites). Needed for "@claude fix the lint failures" | |
| # style requests that depend on the failing log. | |
| additional_permissions: | | |
| actions: read |