absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
425 stars 40 forks source link

Tag Description #165

Open DevLomoSE opened 4 months ago

DevLomoSE commented 4 months ago

Hello there,

I there a way to use the CHANGELOG file content to set the tag description?

once we run the command commit-and-tag-version, it get the commits and create/update the changelog.md file, create a new tag commit and provide you the command to push those changes.

what im i looking for is: same commits that the cli took to update the changelog.md are used to set the tag description instead of: chore(release): x.x.x

then the tag release has description from the changelog like: x.x.x (date) Features:

Fixes:

TimothyJones commented 4 months ago

Not at this time, no. There is an undocumented option, releaseCommitMessageFormat (which should probably be documented) - but this only supports {{currentTag}} and constant strings.

You could hack something together by parsing the changelog out of --dry-run combined with --releaseCommitMessageFormat. I'd happily accept a PR that extends format-commit-message.js with more options, too.