diff --git a/.github/workflows/claude-code-review.yaml b/.github/workflows/claude-code-review.yaml index 1c455df..03fde78 100644 --- a/.github/workflows/claude-code-review.yaml +++ b/.github/workflows/claude-code-review.yaml @@ -2,7 +2,7 @@ name: Claude Code Review on: pull_request: - types: [opened, synchronize, ready_for_review] + types: [opened, synchronize, ready_for_review, labeled, unlabeled] # Optional: Only run on specific file changes # paths: # - "src/**/*.ts" @@ -14,7 +14,8 @@ jobs: claude-review: if: | github.event.pull_request.user.login == 'vabatta' && - github.event.pull_request.draft == false + github.event.pull_request.draft == false && + !contains(github.event.pull_request.labels.*.name, 'no-claude-review') timeout-minutes: 5 runs-on: ubuntu-latest @@ -47,6 +48,9 @@ jobs: Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR. + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number }} + # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'