Skip to content

ci: strip leading whitespace from commit subjects before conventional parsing - #1835

Merged
Angus-Bethke-Bachmann merged 2 commits into
masterfrom
ci/cliff-strip-leading-whitespace
Jul 29, 2026
Merged

ci: strip leading whitespace from commit subjects before conventional parsing#1835
Angus-Bethke-Bachmann merged 2 commits into
masterfrom
ci/cliff-strip-leading-whitespace

Conversation

@ghaith

@ghaith ghaith commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Problem

The release automation proposed v1.1.0 (#1783) even though a breaking change (#1801, feat!:) landed on master since v1.0.0.

The squash commit subject of #1801 is literally feat!: changed time to unsigned 32-bit preserving ltime as 64-bit (#1801) — the PR title carried a leading space. A subject that doesn't start with the type fails conventional-commit parsing, and with filter_unconventional = true git-cliff drops the commit entirely: it neither counts toward the version bump nor appears in the generated CHANGELOG.md. protect_breaking_commits can't help because the commit is never recognized as breaking in the first place.

Fix

Add a commit_preprocessors entry that strips leading whitespace from the message before parsing.

Verification

On current master with this change, git-cliff --bumped-version reports v2.0.0 (previously v1.1.0), and git-cliff --unreleased again lists "Changed time to unsigned 32-bit preserving ltime as 64-bit (#1801)". Isolated behavior confirmed in a scratch repo: fix: only → v1.0.1; adding " feat!:" (leading space) → still v1.0.1; same subject without the space → v2.0.0.

Once this lands, the next master push regenerates the release PR as v2.0.0 with the breaking change restored in the changelog.

🤖 Generated with Claude Code

ghaith and others added 2 commits July 29, 2026 10:39
… parsing

A squashed PR title with a stray leading space fails conventional-commit
parsing, and filter_unconventional drops the commit from both the
changelog and the version-bump calculation. The breaking change in #1801
was silently excluded this way, so the release PR computed v1.1.0
instead of v2.0.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

Build Artifacts

🪟 Windows

Artifact Link Size
stdlib.lib Download 4.0 MB
stdlib.dll Download 0.1 MB
plc.exe Download 38.3 MB

From workflow run

🐧 Linux

Artifact Link Size
deb-x86_64 Download 38.4 MB
schema Download 0.0 MB
stdlib Download 32.4 MB
plc-x86_64 Download 43.4 MB
deb-aarch64 Download 30.8 MB
plc-aarch64 Download 43.3 MB

From workflow run

@Angus-Bethke-Bachmann
Angus-Bethke-Bachmann added this pull request to the merge queue Jul 29, 2026
Merged via the queue into master with commit 128bdfa Jul 29, 2026
22 checks passed
@Angus-Bethke-Bachmann
Angus-Bethke-Bachmann deleted the ci/cliff-strip-leading-whitespace branch July 29, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants