Skip to content

ci: stop re-running test workflow on pull_request_review#1446

Merged
nicoloboschi merged 1 commit intomainfrom
fix/remove-pr-review-ci-trigger
May 5, 2026
Merged

ci: stop re-running test workflow on pull_request_review#1446
nicoloboschi merged 1 commit intomainfrom
fix/remove-pr-review-ci-trigger

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

  • Drop pull_request_review from on: triggers in .github/workflows/test.yml and remove all the conditional gating it required (33 != skips, 17 ((... approved) || clauses, the verify-generated-files filter, and the report-pr-status job).
  • Motivation: pull_request_review was originally added so secret-requiring jobs could re-run for fork PRs after a maintainer approved. But the trigger fires on every review, so approving an internal PR (e.g. fix: repair 4 broken tests on main #1437) kicks off a duplicate CI run on the same SHA — wasted CI minutes and noisier checks.
  • New behavior: CI runs once per push on pull_request. Fork PRs run only the jobs that don't need secrets (still gated by needs.detect-changes.outputs.has_secrets). To run the full suite on a fork branch, push it to an internal branch or use workflow_dispatch.

Test plan

  • Push triggers a single CI run (no second run on review)
  • Approving this PR does NOT start a new CI run
  • has_secrets-gated jobs still run for this internal PR
  • Workflow YAML parses cleanly (verified locally)

The CI workflow used pull_request_review to re-run secret-requiring jobs
after a maintainer approved a fork PR. But pull_request_review fires on
every review, so approving an internal PR triggered a duplicate CI run on
the same SHA.

Drop the pull_request_review trigger and all the conditional gating it
required. CI now runs once per push on pull_request. Fork PRs run only
the jobs that don't need secrets (gated by has_secrets); to run the full
suite on a fork branch, push it to an internal branch or use
workflow_dispatch.
@nicoloboschi nicoloboschi merged commit d9da3f2 into main May 5, 2026
60 of 63 checks passed
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