Commit 0d84fe9
committed
ci: add PR-title commitlint as a standalone workflow
Pulls the conventional-commit check out of ci.yml's lint job into its
own workflow (.github/workflows/pr-title.yml) so it exposes a stable,
isolated status-check name that branch protection on develop and main
can require independently.
Why this matters: the repo enforces squash-merge, so the PR title
becomes the commit message on develop/main. semantic-release then reads
that message through commitlint.config.js's type-enum to decide whether
to cut a release. PR #245 ("release: audit...") squashed to a
non-conventional commit, semantic-release silently exited with "no
release", and that's the trap that produced the v0.15.0 stale-version
tag. Blocking non-conventional titles at the merge gate stops it
recurring.
The new workflow uses the env-var pattern for github.event.pull_request.title
(never interpolating it directly into a run: command) and printf '%s'
instead of echo to avoid PR titles starting with -e/-n being interpreted
as echo flags. Co-required with the upcoming branch-protection update
(Phase 0 C2) which will mark PR title / commitlint as required.1 parent 047d020 commit 0d84fe9
2 files changed
Lines changed: 57 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments