Merge pull request #417 from lfnovo/fix/claude-workflow-conditional-runs
fix: prevent duplicate Claude Code workflow runs
This commit is contained in:
commit
f47b139328
1 changed files with 4 additions and 5 deletions
9
.github/workflows/claude-code-review.yml
vendored
9
.github/workflows/claude-code-review.yml
vendored
|
|
@ -14,11 +14,10 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
claude-review:
|
claude-review:
|
||||||
# Optional: Filter by PR author
|
# Run for fork PRs (via pull_request_target) OR same-repo PRs (via pull_request), but not both
|
||||||
# if: |
|
if: |
|
||||||
# github.event.pull_request.user.login == 'external-contributor' ||
|
(github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) ||
|
||||||
# github.event.pull_request.user.login == 'new-developer' ||
|
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue