-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Initial tag hard coded to 0.1.0, even when it doesn't match tag_pattern
#1066
Comments
Hey, thanks for reporting 👋🏼 This should be fixed in #1070
This is not a very commonly used configuration option, you'd probably only need it once while creating the initial version. But I can implement it if you need it. Just let me know and shoot me another issue :) |
Well when onboarding other teams to the tool / process (which mandates a tag-prefix for monorepos) this is a common scenario and it's an obstacle to have to tell them "you have to create an initial tag per subcomponent first" |
Yeah, I see the inconvenience... I just tested this again and realized |
Not really since it always takes the value from the tag argument. However I found another way. I've converted the |
Cool! I created #1100 for tracking the |
@orhun cool, thanks. BTW I also found out that |
Ah damn, that's a good catch! Should be fixed in #1101 It might be a breaking change, but that's how this is intended to be used anyways. |
Is there an existing issue for this?
Description of the bug
When running
git cliff --bumped-version
with a tag pattern configured and no matching tags, it will just happily create the hard-coded0.1.0
tag without validating it against the regex.Steps To Reproduce
Expected behavior
git cliff
creates a tag that passes the regex. Since that is not really trivial and probably not very practical, it should at least refuse to print anything and exit with an error code instead.Screenshots / Logs
No response
Software information
Additional context
I am aware of the
initial_tag
option. However, it is actually infeasible for us to set this in thecliff.toml
as we have one for the whole team. It would be great if this option was available as an ENV or a CLI param.The text was updated successfully, but these errors were encountered: