Skip to content

release: v3.2.1 - use OLDEST matching commit for title-suffix, not newest - #13

Merged
Shinrai merged 2 commits into
masterfrom
fix/title-suffix-oldest-first
May 21, 2026
Merged

Shinrai merged 2 commits into
masterfrom
fix/title-suffix-oldest-first

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(release): use OLDEST matching commit for title-suffix, not newest (569a854)

🔧 Other Changes

No other changes

👥 Contributors

Shinrai and others added 2 commits May 20, 2026 22:33
computeTitleSuffix() was picking the most recent feat/fix/breaking
commit on the branch — which meant the PR title's descriptive suffix
drifted every time a follow-up commit landed. A reviewer who first
saw the PR titled 'release: v3.2.1 - SHA-pin trivy-action…' could
revisit later and find 'release: v3.2.1 - diff client-side instead
of PUT-replacing all labels' because a later fix(labels) commit
landed. Same PR, different headline — confusing.

The suffix should stay pinned to what the PR was OPENED for: the
chronologically-oldest matching commit. Follow-up commits still show
up in the body changelog, just not in the title.

git-log default order is reverse-chronological (newest first), so the
'first match' from .find() was the newest. Switched to .findLast(),
which iterates from the end of the array — for a reverse-chronological
list, that's the oldest. Fallback path (no category match) also flipped
from actionableCommits[0] to actionableCommits[length-1].
@cldmv-bot cldmv-bot Bot added release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: core labels May 21, 2026
@Shinrai
Shinrai merged commit 2305b09 into master May 21, 2026
8 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/title-suffix-oldest-first branch May 21, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant