1

Can we configure commitizen command
cz bump

to bump to a default version (i.e. PATCH ) if there is no commit bump_pattern (i.e. ^(break|new|fix|hotfixi)) in the commit message?

This is the part in my .cz.yaml that controls the bumping behavior:

  bump_map:
  break: MAJOR
  fix: PATCH
  hotfix: PATCH
  new: MINOR
  "": PATCH
  bump_pattern: ^(break|new|fix|hotfix|.*)

after saving the file and running 'cz bump' I see that the .cz.yaml file was updated to:

  bump_map:
  ? ''
  : PATCH
  break: MAJOR
  fix: PATCH
  hotfix: PATCH
  new: MINOR

I know that my regex isn't correct but even if updating it, how do I configure the 'bump_map' to assign PATCH on every commit that doesn't start with a type:? Thanks

Jotta E
  • 292
  • 5
  • 14

0 Answers0