-
-
Notifications
You must be signed in to change notification settings - Fork 301
Labels
issue-status: wait-for-implementationmaintainers agree on the bug / featuremaintainers agree on the bug / featuretype: featureA new enhacement proposalA new enhacement proposal
Description
Description
The idea of this ticket is to track the "graduation" of cz version --project into a powerful command, capable of fetching information about the project.
This includes:
- Introduce
--nextflag oncz version --project. Which returns the next version based on the project's config. It could potentially support forcing the increment type. Example:--next=MAJORor--next=PATCHIntroduce--nextflag oncz version --project#1678 - Allow users to play with the configured
version_scheme, by letting them provide any version,cz version <version_arg>, this would override the commitizen version or the given--projectparameter. The user would then be able to "learn" about the behavior, by doingcz version 0.1.0 --next=MAJORAdd support forcz version <version_arg>#1679 - Add
--tag: to actually retrieve the tag of the version with the template applied. If your tags looks like this:v0.1.0. You have to manually add v to your version right now. This would be useful to interact with git. If you want to retrieve the tagged commit, you could do: git show-ref $(cz version -p --tag). This is useful for auditing. And, if you have an old CI (e.g: jenkins), it would give an easy way for teams to check if the tag exists already before trying to bump. This parameter is the one I'm least sure about, so maybe we can work on the other features first, and if we think it would be useful, we add it. - Do we want a
--hashto get the version hash for auditing purposes?
Sub-issues
Metadata
Metadata
Assignees
Labels
issue-status: wait-for-implementationmaintainers agree on the bug / featuremaintainers agree on the bug / featuretype: featureA new enhacement proposalA new enhacement proposal