Skip to content

fix(ci): a BREAKING CHANGE footer is a footer, not a substring - #862

Merged
lobinuxsoft merged 1 commit into
developmentfrom
fix/version-breaking-footer
Aug 17, 2026
Merged

fix(ci): a BREAKING CHANGE footer is a footer, not a substring#862
lobinuxsoft merged 1 commit into
developmentfrom
fix/version-breaking-footer

Conversation

@lobinuxsoft

Copy link
Copy Markdown
Owner

The version workflow's first run took the engine from 0.2.44 to 1.0.0. The pull request that introduced it explained the rule in a bullet — the literal string was in the body — and the bash conditional matched it anywhere, footer or not.

  • The decision moves out of bash and into bump_version.py --decide, with --self-test beside it. The regression is one of its twelve cases, and the workflow runs the self-test before it trusts the answer.
  • The footer is anchored to the start of a line (^BREAKING[ -]CHANGE:), which is what Conventional Commits actually specifies. A subject is breaking only via type!:.
  • Restores the version to 0.2.45, the patch that PR should have produced.

Labelled no-version-bump so the workflow does not immediately re-bump 1.0.0 to 1.0.1 and undo the correction.

The first run this workflow ever did took the engine from 0.2.44 to
1.0.0, because the pull request that introduced it explained the rule in
a bullet and the bash conditional matched 'BREAKING CHANGE:' anywhere in
the body.

The decision moves into bump_version.py with a self-test beside it - the
regression is one of its twelve cases - and the footer is anchored to the
start of a line, which is what Conventional Commits actually says.

Restores the version to 0.2.45, the patch that PR should have been.
@lobinuxsoft lobinuxsoft added the no-version-bump The version workflow leaves this PR alone label Aug 17, 2026
@lobinuxsoft
lobinuxsoft merged commit bf70567 into development Aug 17, 2026
1 check passed
@lobinuxsoft
lobinuxsoft deleted the fix/version-breaking-footer branch August 17, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-version-bump The version workflow leaves this PR alone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant