-
-
Notifications
You must be signed in to change notification settings - Fork 256
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
When the GIT_CLIFF__GIT__LIMIT_COMMITS environment variable is 0 and the --with-commit argument is given (to ignore the git history except for one future commit message), trying to get the next version with --bumped-version will not display a "There is nothing to bump." warning if the --with-commit message is not a conventional commit.
Steps To Reproduce
- Set the GIT_CLIFF__GIT__LIMIT_COMMITS environment variable to 0
- Run
git-cliff --bumped-version --with-commit "test" - No warning occurs, even though there is nothing to bump.
Expected behavior
If GIT_CLIFF__GIT__LIMIT_COMMITS=0 and the next version cannot be determined from the --with-commit message, the "There is nothing to bump." warning should be shown.
Screenshots / Logs
No response
Software information
- Operating system: Debian 12 (Docker container)
- Rust version: N/A
- Project version: 2.10.0
Additional context
If GIT_CLIFF__GIT__LIMIT_COMMITS is anything other than 0 (i.e. at least one commit in the history is checked), the expected behavior succeeds and the warning will be shown only if the version cannot be bumped from the with-commit message.