Repository navigation
release: v3.2.1 - use OLDEST matching commit for title-suffix, not newest - #13
Merged
Merged
Conversation
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].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
🔧 Other Changes
No other changes
👥 Contributors