Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork304
make tag creation optional#730
-
DescriptionIt would be great for our workflow to make it possible to opt out via config option of the creation of a git tag on Possible Solutionwe could add a config option like Additional contextWe 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:
But this means we end up with tags on different commits locally than in our upstream repo. 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 contextNo response |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
That's great@TheKangaroo ! Glad to hear you found a solution!
For reference in commitizen you could do:
cz bump --files-only --yes --changeloggit commit -am"bump: release$(cz version --project)"And later on to create the tag:
git tag $(cz version --project)Commitizen works well with git, and where commitizen is available you knowgit will be available, this gives you a lot of flexibility.
Maybe we could add this as a tutorial? 🤔
Replies: 4 comments 1 reply
-
This workflow would work better for my team as well |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can you expand on your workflow@bruno-fs ? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I have to admit, we switched to release-it with conventional-changelog and bumper plugin for our release workflow, which made our workflow work without any hacks. |
BetaWas this translation helpful?Give feedback.
All reactions
-
That's great@TheKangaroo ! Glad to hear you found a solution! For reference in commitizen you could do: cz bump --files-only --yes --changeloggit commit -am"bump: release$(cz version --project)"And later on to create the tag: Commitizen works well with git, and where commitizen is available you know Maybe we could add this as a tutorial? 🤔 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1🎉 1❤️ 2
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Searched for hours to find this, that after a "--files-only" a manual git tag is needed. I was looking for a flag in "cz bump" Add: this is not complete if you use tag_format. I guess there is no way to get the tag? |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #612 on April 28, 2023 12:50.