No commits found to generate a pre-release
See original GitHub issueDescription
cz bump --prerelease rc
should handle missing “bumpable” commits the same way as cz bump
.
Steps to reproduce
- create a non-bumpable commit (i.e.
ci
orbuild
) - run
cz bump --prerelease rc --dry-run
Current behavior
The command terminates with an error:
$ cz bump --prerelease rc --dry-run
[NO_COMMITS_FOUND]
No commits found to generate a pre-release.
To avoid this error, manually specify the type of increment with `--increment`
Desired behavior
It should behave like running cz bump
without --prerelease
flag.
$ cz bump --dry-run
bump: version 1.2.1 → 1.2.1 [skip ci]
tag to create: v1.2.1
increment detected: None
Environment
- commitizen version: 2.18.0
- python version: 3.9.4
- operating system: Darwin
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Prevent Prerelease 'Bump' From Release Version With No ...
Successfully merging a pull request may close this issue. fix: prevent prerelase from creating a bump when there are no commits commitizen-tools ...
Read more >Version Incrementing - GitVersion
Semantic Versioning is all about releases, not commits or builds. This means that the version only increases after you release, this directly conflicts...
Read more >Semantic-Release - pre-release version not incrementing for ...
Ran npx semantic-release locally on my computer while have the beta branch checked out after having a commit that would increment the version....
Read more >Semantic Versioning 2.0.0 | Semantic Versioning
Additional labels for pre-release and build metadata are available as extensions to ... without having to release new versions of every dependent package)....
Read more >Configuration — python-semantic-release 7.32.2 documentation
The format of a prerelease version will be {tag_format}-{prerelease_tag}. ... will create a new patch release even if there is no tag in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm … I am not sure yet.
If any release (alpha, beta, rc, prod) would bump the version if and only if there is a version increasing commit then we would not have a problem, no?
I kinda expect the following behaviour when there is no version increasing commit:
Basically we need to consider the different types of releases in a hierarchical order and only create a tag when we increase the level of release. And we’ll never increase the version if there is not version increasing commit.
I think it’s quite common to first release something as RC and later release the same code as release. 🤔
Does this make sense?
Hi, i basically run into the same issue (not being able to release a RC as PROD). Is there a recommended workflow/workaround to go from RC to PROD without commits in between?
Thanks