Skip to content

fix: version-bump-check parser silently passes all PRs#28

Merged
TMHSDigital merged 1 commit intomainfrom
fix/version-bump-check-parser
Apr 25, 2026
Merged

fix: version-bump-check parser silently passes all PRs#28
TMHSDigital merged 1 commit intomainfrom
fix/version-bump-check-parser

Conversation

@TMHSDigital
Copy link
Copy Markdown
Owner

Fixes the version-bump-check job in validate.yml. The job has been silently passing every PR since 2026-04-22 due to bash command substitution stripping \0 separators in the git log output, causing the regex parser to never match.

Replaces \x00 with \x1f (Unit Separator), which preserves through bash command substitution. The record separator (\x1e) was already safe and is unchanged.

Closes #24.

Verification

This PR's commit prefix is fix: AND it bumps VERSION (1.8.41.8.5). The fixed check should pass on this PR (legitimately — because of the bump).

Functional verification of the fix happens on a subsequent deliberate test PR: a feat:/fix: PR without a VERSION bump should now fail the check red.

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
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the ci label Apr 25, 2026
@TMHSDigital TMHSDigital merged commit 594a8f1 into main Apr 25, 2026
13 checks passed
@TMHSDigital TMHSDigital deleted the fix/version-bump-check-parser branch April 25, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat/fix commits require VERSION bump check did not catch missing bump on PR #22

1 participant