-
-
Notifications
You must be signed in to change notification settings - Fork 304
Description
Description
It would be great for our workflow to make it possible to opt out via config option of the creation of a git tag on cz bump.
Possible Solution
we could add a config option like disable_tag_creation (which defaults to false) to make it possible to optional disable the creation of the git tag.
Additional context
We just started to use commitizen so maybe our workflow isn't the best right now.
Our GitLab rules forbid to push on main and we don't want to change that. So we needed to find a way to create releases with commitizen without pushing to main. We came up with the following workflow:
- create new branch localy from main
- run
cz bump(with changelog creation) (which create a local tag on that feature branch) - push a merge request (just the commit without the tag) to the upstream repo
- have a teammate review and approve the merge request
- merge the merge request
- a ci pipeline will run on every merge to master with commit message "bump: version.*" and create a gitlab release for it which also creates a git tag
But this means we end up with tags on different commits locally than in our upstream repo.
We can clean things up by running
git tag -l | xargs git tag -d
git fetch --tags
but it would be good to just don't mess up things in the first place.
As I said, we're new to commitizen, so maybe there is an easier way to achive this
Additional context
No response