You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running git cliff --bumped-version with a tag pattern configured and no matching tags, it will just happily create the hard-coded 0.1.0 tag without validating it against the regex.
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
Operating system: n/a
Rust version: n/a
Project version: 2.8.0
Additional context
I am aware of the initial_tag option. However, it is actually infeasible for us to set this in the cliff.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:
I am aware of the initial_tag option. However, it is actually infeasible for us to set this in the cliff.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.
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 --bumped-version and --tag could be used together. Also, it yields the value of --tag when there isn't any tag exist yet. Is that an useful behavior for your case?
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: