ci(workflows): trigger CI on stacked-PR branches - #562
Conversation
Add the conventional stacked-PR branch prefixes to the ci.yml and sonarcloud.yml pull_request and push triggers so each layer of a stacked PR (fix/, feat/, docs/, qa/, refactor/, perf/, chore/, ci/) runs the full build, test, lint, format, security audit, and code quality pipeline instead of waiting for the top layer to merge. The full CI still runs on main and merge_group as before; only the list of trigger branches expands. The change keeps the existing main branch in the list and adds the conventional prefixes used by the project's stacked-PR workflow. Refs: #558 Refs: #559 Refs: #560
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe CI and SonarCloud workflows now trigger for ChangesWorkflow trigger coverage
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change expands CI coverage to stacked-PR branches without altering workflow jobs or other behavior; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|



Description
Extend the CI workflow triggers so each layer of a stacked pull request runs the full pipeline instead of waiting for the top layer to merge.
Currently
.github/workflows/ci.ymland.github/workflows/sonarcloud.ymlonly run on pull requests whose base ismain. Layered stacked PRs that target intermediate branches (fix/*,feat/*,docs/*,qa/*,refactor/*,perf/*,chore/*,ci/*) only see the cross-cutting checks (CodeQL, Greetings, Labeler, Semgrep, Socket, GitGuardian), which leaves the build, test, lint, format, security audit, E2E, and Code Quality Analysis suites as "Expected — Waiting for status to be reported".This change adds the conventional stacked-PR branch prefixes to both
pull_requestandpushtriggers so every layer is exercised end-to-end before review. The triggers still covermainandmerge_group, and thepushtriggers now mirrorpull_requestfor parity. No other behavior in the workflow files changes.Fixes # (none)
Type of change
How Has This Been Tested?
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo test --all-featurespython3 -c "import yaml; yaml.safe_load(open('.github/workflows/ci.yml')); yaml.safe_load(open('.github/workflows/sonarcloud.yml'))"Test Configuration:
lefthook run pre-commit) and the YAML validator before pushingChecklist:
Chain Context
github-stacked-prsstacked-pr-ci-triggers1 of 1mainci/stack-pull-request-trigger7465d920Chain Overview