Commit 594a8f1
authored
fix: version-bump-check parser silently passes all PRs (#28)
The version-bump-check job in validate.yml uses
git log --pretty=format:'%H%x00%s%x00%b%x1e' to extract commits
and parse them. Bash command substitution silently strips \0
bytes (with a warning to stderr that nothing inspects), gluing
SHA+SUBJECT+BODY into one field. The regex that extracts
conventional-commit prefixes never matched, so the check has
been silently passing every PR since 2026-04-22 (commit f27e37f).
PR #22 (DTD#4 fix) was a fix:-prefixed PR that did not bump
VERSION. The check should have failed it but did not, allowing
the PR to merge and causing the next release to fail.
Replaces \x00 with \x1f (Unit Separator) which preserves through
bash command substitution. The record separator (\x1e Record
Separator) was already safe and is unchanged. The awk -F
arguments are updated to match.
Closes #24.
Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Made-with: Cursor
Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com1 parent 5772b15 commit 594a8f1
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
209 | | - | |
210 | | - | |
211 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments