Skip to content
Discussion options

You must be logged in to vote

Add an if condition to your review job to skip bot-authored PRs:

name: Claude Auto Review
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  review:
    if: github.event.pull_request.user.type != 'Bot'
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
      id-token: write
    steps:
      - uses: actions/checkout@v4
      - uses: anthropics/claude-code-action@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

github.event.pull_request.user.type is "Bot" for all GitHub App bot accounts — claude[bot], dependabot[bot], renovate[bot], etc. This skips all of them.

If you only want to skip Claude specifically (and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by levino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants