Merge pull request #417 from lfnovo/fix/claude-workflow-conditional-runs

fix: prevent duplicate Claude Code workflow runs
This commit is contained in:
Luis Novo 2026-01-13 19:38:29 -03:00 committed by GitHub
commit f47b139328
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,11 +14,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'
# Run for fork PRs (via pull_request_target) OR same-repo PRs (via pull_request), but not both
if: |
(github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
permissions: