Skip to content

Fix duplicate review runs for same-repo PRs#244

Merged
neuromechanist merged 1 commit intodevelopfrom
feature/fix-review-workflow-dedup
Feb 26, 2026
Merged

Fix duplicate review runs for same-repo PRs#244
neuromechanist merged 1 commit intodevelopfrom
feature/fix-review-workflow-dedup

Conversation

@neuromechanist
Copy link
Member

Summary

  • Add missing condition to prevent pull_request_target from firing for same-repo PRs
  • Without this fix, PRs by non-neuromechanist contributors from same-repo branches would trigger two review runs (one from pull_request, one from pull_request_target)
  • Fork PRs still correctly use pull_request_target only (which provides secrets access)

Test plan

  • Verify review triggers exactly once when a non-neuromechanist user opens a same-repo PR
  • Verify review triggers exactly once for fork PRs via pull_request_target
  • Verify neuromechanist PRs are still skipped

Add condition to skip pull_request_target for non-fork PRs, so only
pull_request fires for same-repo branches. Without this, both events
would trigger a review for PRs by non-neuromechanist contributors.
@neuromechanist neuromechanist merged commit de38d87 into develop Feb 26, 2026
3 checks passed
@neuromechanist neuromechanist deleted the feature/fix-review-workflow-dedup branch February 26, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant