standard-version icon indicating copy to clipboard operation
standard-version copied to clipboard

How can I adjust the tag description/message?

Open rklec opened this issue 2 years ago • 1 comments

Problem

The tag prefix is adjustable and the version number is quite obvious to be in there.

However for the tag description it always uses the last commit (which in our version then is "chore: bump version to XY", which is quite useless to include IMHO).

Question

Instead, I want to include a custom arbitrary string in there. I would just like to pass it to standard-version to be used in the tag to-be-generated.

How can I do that?

Related

I found https://github.com/conventional-changelog/conventional-changelog/issues/423 but this seems to be about the changelog and changing that there. Also https://github.com/conventional-changelog/standard-version/issues/297 is about the commit to be generated and not the tag.

I could not find a duplicate of this issue.

rklec avatar Mar 03 '22 15:03 rklec

Okay found --releaseCommitMessageFormat... (which BTW is not documented in the Readme, only --help shows it)

The code where this happens is apparently in: https://github.com/conventional-changelog/standard-version/blob/f5bff12515aadf5f532c2e7a992c929c5f633469/lib/lifecycles/tag.js#L24

And I see no way that an arbitrary tag description/string is allowed here. The only way that was added (https://github.com/conventional-changelog/standard-version/pull/351) is changing the whole commit message, but that is obviously not what I want.

So I guess you can convert this into a feature request?

rklec avatar Mar 03 '22 15:03 rklec