Skip to content

chore(ci): run PR checks on stacked PRs too - #1355

Merged
gabrielseco merged 1 commit into
mainfrom
ci/run-pr-checks-on-stacked-prs
Sep 22, 2026
Merged

gabrielseco merged 1 commit into
mainfrom
ci/run-pr-checks-on-stacked-prs

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

CI checks (lint, tests, build, bundle-size, PR-title) were skipping entirely on PRs whose base branch isn't main/release/* — including stacked PRs like #1347, which targets a feature branch. Now they run for a PR against any base branch.

Why

Stacked PRs (a PR whose base is another feature branch, not main) are a normal part of this repo's workflow, but pr.yml, pr-title.yml, and size-check.yml all filtered on.pull_request.branches to [main, release/*]. A PR targeting anything else got zero required checks — no lint, no type-check, no tests, no build, no size check, no conventional-commit title enforcement — until it was eventually retargeted at main.

What changed

Toggle details
  • .github/workflows/pr.yml: dropped the branches: [main, release/*] filter on pull_request, so lint/format, type-check, build/exports, tests+coverage, example-app checks, and e2e all run regardless of base branch.
  • .github/workflows/pr-title.yml: same — conventional-commit title check now runs on stacked PRs too.
  • .github/workflows/size-check.yml: same, paths filter unchanged.

No changes to ci-main.yml (push-to-main pipeline) or anything path/schedule-triggered — those were already unaffected by base branch.

Does not touch src/index.tsx or any public API — CI config only.

Screenshots

N/A

Related Resources

Testing


Note

Low Risk
CI-only trigger broadening; no application code or runtime behavior changes, with slightly more Actions usage on non-main-base PRs.

Overview
PR checks now run for pull requests against any base branch, not only when the target is main or release/*.

Three workflows drop the on.pull_request.branches filter: pr.yml (lint, type-check, build, tests, coverage, example app, e2e, previews), pr-title.yml (conventional-commit title; release-branch head ref skip unchanged), and size-check.yml (path filters for bundle-related files unchanged). Stacked PRs targeting feature branches get the same CI gates before they are retargeted to `main.

Reviewed by Cursor Bugbot for commit 07f4bbc. Bugbot is set up for automated code reviews on this repo. Configure here.

pr.yml, pr-title.yml, and size-check.yml only triggered on
pull_request when the base branch was main/release/*. A stacked PR
(base = another feature branch, e.g. #1347's base of
e2e-germany-onboarding) silently skipped lint, tests, build, size
check, and title check entirely.

Drop the branches: filter so these workflows run for a PR against any
base branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gabrielseco gabrielseco changed the title ci: run PR checks on stacked PRs too chore(ci): run PR checks on stacked PRs too Sep 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-ess86f3eg-remotecom.vercel.app
Latest Commit:07f4bbc

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for adp-cost-calculator ready!

Project:adp-cost-calculator
Status: ✅  Deploy successful!
Preview URL:https://adp-cost-calculator-1d5hkrtf1-remotecom.vercel.app
Latest Commit:07f4bbc

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 86.19% 86.19% 0% ⚪
Statements 85.77% 85.77% 0% ⚪
Functions 84.73% 84.73% 0% ⚪
Branches 77.66% 77.66% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 4780 / 5546
  • Coverage: 86.19%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 4864 / 5671
  • Coverage: 85.77%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1276 / 1506
  • Coverage: 84.73%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 2962 / 3814
  • Coverage: 77.66%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco
gabrielseco merged commit d90a112 into main Sep 22, 2026
16 checks passed
@gabrielseco
gabrielseco deleted the ci/run-pr-checks-on-stacked-prs branch September 22, 2026 08:19
@gabrielseco gabrielseco mentioned this pull request Sep 25, 2026
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