Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add suffix flag #13

Open
gladiatr72 opened this issue Apr 3, 2020 · 0 comments · May be fixed by #14
Open

add suffix flag #13

gladiatr72 opened this issue Apr 3, 2020 · 0 comments · May be fixed by #14
Assignees
Labels
enhancement New feature or request

Comments

@gladiatr72
Copy link

adds a --suffix flag that operates similarly to the --prefix flag

At this point, specifying a prefix and/or suffix causes vinnie to start a new version stack because of how version validation is done.

If you have a set of tags, 0.0.1 - 0.0.5 then use a --*fix flag, vinnie starts over at 0.0.0 since the pre/suffix becomes part of the validation pattern.

My idea for --suffix is being able to create feature-branch tags in CI, but rather than starting the versioning at 0 (or 1) to have it switch into a hybrid semver/integer-version mode where the semver portion of the tag is frozen and an incrementing counter is added to the tail of the suffix.

For example, if the nearest proximal master tag is v1.0.1, commits to a feature branch would generate v1.0.1-fb1, v1.0.1-fb2, etc. If the branch is merged or rebased against master, it would pick up (again) the nearest proximal tag following standard semver.

@gladiatr72 gladiatr72 added the enhancement New feature or request label Apr 3, 2020
@gladiatr72 gladiatr72 self-assigned this Apr 3, 2020
@gladiatr72 gladiatr72 linked a pull request Apr 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant