Skip to content

Run PR checks on stacked pull requests too - #74

Merged
taurheim merged 1 commit into
masterfrom
ci/require-checks-on-all-prs
Jul 29, 2026
Merged

Run PR checks on stacked pull requests too#74
taurheim merged 1 commit into
masterfrom
ci/require-checks-on-all-prs

Conversation

@taurheim

Copy link
Copy Markdown
Owner

pr.yml was scoped to on: pull_request: branches: [master], which only fires when the PR's base is master. A PR stacked on another PR therefore ran no checks at all:

$ gh pr checks 73
no checks reported on the 'fix/import-data-loss' branch

That is the PR most in need of checks, since it is being reviewed against a base that has not landed yet.

Dropping the filter makes the workflow run on every pull request regardless of base. ci.yml still covers push-to-master, so this does not double up.

Also done outside this repo

The Protect master - require pull requests ruleset required a PR but had no required_status_checks rule, so master could be merged into with CI red or CI never having run. I added it:

  • Required contexts: Lint, Build, E2E Tests (pinned to the GitHub Actions app, so another integration cannot report a passing check with the same name)
  • Strict policy on: a branch must be up to date with master before it can merge

Note the interaction with stacked PRs: with the strict policy, each merge into master makes every other open PR need an update before it can merge.

`on: pull_request: branches: [master]` only triggers for PRs whose *base*
is master, so a PR stacked on another PR silently ran no checks at all.
That is the PR most in need of them, since it is reviewed against a base
that has not landed yet.

Verified against PR #73, which targets a feature branch:
"no checks reported on the 'fix/import-data-loss' branch".

ci.yml still handles push-to-master, so this does not double up.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f0df23dc-ed73-4b56-9b7c-4d2846ddf2a2
@taurheim
taurheim force-pushed the ci/require-checks-on-all-prs branch from fe447dc to 006c0a0 Compare July 27, 2026 01:35
@taurheim
taurheim merged commit 2217471 into master Jul 29, 2026
3 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