Feat/next version#2036
Open
woile wants to merge 4 commits into
Open
Conversation
Contributor
🔍 Commitizen bump previewMerging this PR will produce the following bump: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2036 +/- ##
=======================================
Coverage 98.23% 98.24%
=======================================
Files 61 61
Lines 2784 2797 +13
=======================================
+ Hits 2735 2748 +13
Misses 49 49 ☔ View full report in Codecov by Harness. |
woile
force-pushed
the
feat/next-version
branch
2 times, most recently
from
July 24, 2026 10:44
f75472f to
21ab7d4
Compare
woile
enabled auto-merge (rebase)
July 24, 2026 10:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Just display the next version based on commits:
# before this PR: 4.16.5 $ cz version -p --next 4.17.0 $ cz version -p --next --minor 17 $ cz version -p --next --major 4This is useful, because it improves the scm provider workflow, which is read-only, based on the tag.
With this features users can easily write themselves:
TODO: Add tutorial for this
On top of that, it's useful for github/forgejo actions for example (not controlled by commitizen, so you'd still need to format the tag):
Checklist
Was generative AI tooling used to co-author this PR?
AI only assisted with testing
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsDocumentation Changes
uv run poe doclocally to ensure the documentation pages renders correctlyExpected Behavior
Steps to Test This Pull Request
# before this PR: 4.16.5 $ cz version -p --next 4.17.0 $ cz version -p --next --minor 17 $ cz version -p --next --major 4Additional Context