Skip to content

Add pull_request trigger to CI workflow - #137

Merged
jamiecobbett merged 2 commits into
masterfrom
IX-2323-add-required-checks-to-public-repos
Aug 6, 2026
Merged

Add pull_request trigger to CI workflow#137
jamiecobbett merged 2 commits into
masterfrom
IX-2323-add-required-checks-to-public-repos

Conversation

@jamiecobbett

@jamiecobbett jamiecobbett commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a pull_request trigger alongside the existing push trigger so build runs against fork PRs, not just pushes to the repo.
  • Restricts the push trigger to master only (post-merge publish flow is unaffected - it already gates on github.ref == 'refs/heads/master').

Why

Part of IX-2323: setting up required status checks across GoCardless's public client library repos so we can safely enable auto-merge. A push-only trigger never runs against a fork PR's head commit, so requiring build in branch protection would otherwise block every external contribution. The existing build job already needs: [test] on the full test matrix, so it can serve as the single required check without a separate aggregator job.

Test plan

  • Confirm build appears and passes on this PR

Required to support requiring the build check in branch protection - a
push-only trigger never runs against a fork PR's head commit, which
would block external contributions once the check is required. The
existing build job already needs the full test matrix, so it can serve
as the single required check without a separate aggregator job.
Gives branch protection a single, stable check name to require,
independent of what jobs the workflow happens to run - so adding a
matrix build or a lint job later only means updating this job's
needs list, not the required checks in Terraform.
@jamiecobbett
jamiecobbett merged commit bef8f43 into master Aug 6, 2026
10 checks passed
@jamiecobbett
jamiecobbett deleted the IX-2323-add-required-checks-to-public-repos branch August 6, 2026 10:12
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.

2 participants