-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
No commits found to generate a pre-release #415
Comments
Thanks for reporting! This seems to be designed this way. See if this comment helps. #307 (comment) |
Ok, I see the issue at hand. Our intention is to generate pre-releases automatically from the master branch in CI. If there are no corresponding changes it should just not do anything. Since we rely on commitizen to determine the kind of bump, it would be problematic to explicitly configure the increment. hmmmm |
@woile I kinda don't get the idea of the original design. Would there be any issue if we check the pre-release commits as usual? |
Luckily I added the issue to the comments, seems to be related to this issue: |
Yep, got your idea. @m1racoli Do you think this one better explains the design? Or is there a better solution for this one |
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? |
This makes sense to me. @woile what do you think? |
Hi, Thanks |
Description
cz bump --prerelease rc
should handle missing "bumpable" commits the same way ascz bump
.Steps to reproduce
ci
orbuild
)cz bump --prerelease rc --dry-run
Current behavior
The command terminates with an error:
Desired behavior
It should behave like running
cz bump
without--prerelease
flag.Environment
The text was updated successfully, but these errors were encountered: