restechnica / semverbot

A CLI which automates semver versioning.
Mozilla Public License 2.0
137 stars 8 forks source link

[FEATURE] Add support for suffix #72

Closed menathan closed 2 months ago

menathan commented 8 months ago

Next to a git.tags.prefix config, also add a git.tags.suffix config option.

Example for .semverbot.toml:

[git.tags]
suffix = "-my-cool-suffix"

Expected result:

<semver>-my-cool-suffix e.g. 0.3.1-my-cool-suffix

ToneVDB commented 8 months ago

Correct me if I'm wrong, but doesn't semver have specific suffixes that can be used?

menathan commented 8 months ago

Yes, see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string. Examples: https://regex101.com/r/Ly7O1x/3/

ToneVDB commented 8 months ago

Worth looking into IMO :)

shiouen commented 8 months ago

I'll have a crack at it :)

shiouen commented 2 months ago

Fixed in #77