Skip to content

"There is nothing to bump." warning missing when using --bumped-version with GIT_CLIFF__GIT__LIMIT_COMMITS=0 and --with-commit #1260

@skyfenton

Description

@skyfenton

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

  1. Set the GIT_CLIFF__GIT__LIMIT_COMMITS environment variable to 0
  2. Run git-cliff --bumped-version --with-commit "test"
  3. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions