diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 0cc83255..6ca9d4ae 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -12,11 +12,10 @@ on: jobs: claude-review: - # Optional: Filter by PR author - # if: | - # github.event.pull_request.user.login == 'external-contributor' || - # github.event.pull_request.user.login == 'new-developer' || - # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' + # Skip workflow for bot PRs (Copilot, Dependabot, etc.) + if: | + github.event.pull_request.user.login != 'Copilot' && + github.event.pull_request.user.type != 'Bot' runs-on: ubuntu-latest permissions: @@ -36,6 +35,7 @@ jobs: uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} prompt: | REPO: ${{ github.repository }} PR NUMBER: ${{ github.event.pull_request.number }}