ci(crewing): match the whole stack with a feat/crewing-* glob
Replace the per-branch PR-checks trigger ([master, feat/crewing-foundations]) with [master, "feat/crewing-*"] so every branch in the stacked crewing series (foundations → requisitions → candidates → …) runs the same hard gates without adding each one by hand. The workflow is evaluated from the branch under test, so the glob is propagated down the stack.
This commit is contained in:
parent
ff0539de92
commit
4528c059aa
1 changed files with 7 additions and 5 deletions
|
|
@ -1,20 +1,22 @@
|
||||||
name: PR checks
|
name: PR checks
|
||||||
|
|
||||||
# Enforces the contribution policy on every PR into master — plus the crewing
|
# Enforces the contribution policy on every PR into master — plus the crewing
|
||||||
# integration branch (feat/crewing-foundations), which collects the stacked,
|
# stack branches (feat/crewing-*), which collect the stacked, feature-flagged
|
||||||
# feature-flagged crewing phases before they merge to master. Same hard gates:
|
# crewing phases (foundations → requisitions → candidates → …) before they merge
|
||||||
|
# to master. Same hard gates:
|
||||||
# - code changes must ship with tests (docs/config/automation are exempt)
|
# - code changes must ship with tests (docs/config/automation are exempt)
|
||||||
# - type-check is clean across the whole project (tests included)
|
# - type-check is clean across the whole project (tests included)
|
||||||
# - unit tests pass
|
# - unit tests pass
|
||||||
# - integration tests pass against an ephemeral Postgres (migrate + seed)
|
# - integration tests pass against an ephemeral Postgres (migrate + seed)
|
||||||
# Runs on the pms1 host runner. See automation/README.md > "Contribution policy".
|
# Runs on the pms1 host runner. See automation/README.md > "Contribution policy".
|
||||||
#
|
#
|
||||||
# Note: for pull_request events the workflow is read from the BASE branch, so a
|
# Note: the workflow is evaluated from the branch under test, so the trigger list
|
||||||
# base must appear in this list for its incoming PRs to be checked.
|
# must match it. The feat/crewing-* glob covers every branch in the stack so each
|
||||||
|
# stacked phase PR is checked without further edits to this file.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, feat/crewing-foundations]
|
branches: [master, "feat/crewing-*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue