restechnica / semverbot

A CLI which automates semver versioning.
Mozilla Public License 2.0
133 stars 6 forks source link

[FEATURE] Add support for suffix #72

Open menathan opened 4 months ago

menathan commented 4 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 4 months ago

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

menathan commented 4 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 4 months ago

Worth looking into IMO :)

shiouen commented 4 months ago

I'll have a crack at it :)