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

Allow skipping tags when calculating the next version #91

Open
markbrockhoff opened this issue Jul 19, 2022 · 3 comments
Open

Allow skipping tags when calculating the next version #91

markbrockhoff opened this issue Jul 19, 2022 · 3 comments

Comments

@markbrockhoff
Copy link

markbrockhoff commented Jul 19, 2022

Hi, first of all thanks for this cool project.

I have a somewhat specific usecase where I would need to ignore some tags following a pattern when calculating the next version.
My approach would be to add build metadata to those commits so that they can be ignored later.

Example:
image
With this git log I would like to be able to run autotag and ignore the commits with meta so the next version in this example would be "v0.1.0".

My idea would be to add a "--ignore" option ("-i" for short) which allows specifying a pattern like "*meta*" to match the tag name against.

What do you think of it, would this be possible?
Thanks in advance :)

@spheromak
Copy link
Contributor

Hrm would having the option to ignore any segment ? I.e. --ignore metadata --ignore prerelease --ignore patch I get that having a regex is more flexible, but this may be easier to use out of the gate. @joemiller do you have any thoughts on this one ?

@markbrockhoff
Copy link
Author

Just to confirm I understood you right, your suggestion would be to add an option like --ignore-metadata meta to ignore tags that have "meta" as metadata on them when calculating the next version right?

Generally speaking this would be fine with me. I just thaught that a regex might be easier from an implementation point of view and like you said more flexible.

@xdubx
Copy link

xdubx commented Nov 30, 2022

@spheromak iam interessted at this feature too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants