-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a dev bump straight after a normal bump #662
Comments
I think cz bump 0.2.0
cz bump --increment minor
cz bump --increment minor --devrelease 0 should work. This could force a bump, I'm not sure if there's a problem with this that we are missing. @Lee-W do you have any thoughts on this? |
oh, I didn't know I could force the increment. let me check this afternoon |
No, you can't haha sorry for the misunderstanding. I was just thinking whether it should be possible to force a bump or not. Edit: The problem with |
I was reading PEP 440 to better grasp what is a "dev" release and as a starter I think "dev" should behave differently from a normal release. e.g. should not trigger the changelog update. In fact, it's an internal feature use by linux packaged lib to create continuous packages and test the installations right ? In this context, you should be able to do a dev release whenever you need even if you just pushed "style" commits/nothing. |
But without commits, if you use commitizen, what kind of semver version would you get? |
Add "dev" to whatever is set in the config (apparently, it can be added on top of anything, pre-release, post-release etc...) ? |
Hi @12rambau , I've tested with the following commands and succeeded. May I know what the error you encountered is? mkdir test
cd test
git init
cz init
touch test_1
git add test_1
cz c
cz bump
touch test_2
git add test_2
cz c
cz bump --devrelease 0 |
I got an "increment" error when bumping the dev release, maybe it's related to the automatic changelog (let me check from dummy repositories) |
👍 on this request.
|
I apologize for not being more consitent in the follow-up of my issues but release problem don't appears so often. So I checked without the changelog that's the same. I cannot create a dev release without creating a dummy commit in between. Problem is our workflow in pydata-sphinx-theme is exactly the same as the one described by @kptkin. what i would like to do is:
In order to get my version set to dev0 right after the publish on pypi. Is it something you would like to implement or is out of scope ? |
I think I'm ok with this feature. maybe something like |
another situation where "empty" could be useful is the following:
|
+1 for this. Are there any updates on the PR / general topic? |
There's an open PR. I'll take a look today. |
Description
In projects I'm working in (the ones that are not yet using
commitizen
) maintainers are bumping a dev version straight after the bump of a new one. That ensures that the version number of the current master/main branch is not the same as the latest release.I wanted to use the new
--devrelease
option of thebump
command for that purpose but as there are no changes to report since the last version, it's not working and the bump fail.Do you think it would be doable or is it a workflow that you don't want to cover?
Steps to reproduce
Current behavior
bump fails
Desired behavior
bump succeed (bonus point if nothing is written to the changelog file)
Screenshots
No response
Environment
cz version: master (as I still have an issue with my name convention and didn't find the time to work on #463)
The text was updated successfully, but these errors were encountered: