commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.9k stars 552 forks source link

Changelog not generating when using github squash & merge #950

Closed bavedarnow closed 1 year ago

bavedarnow commented 2 years ago

When merging pull requests using githubs "squash & merge" feature, it seems like the cz bump processes correctly, but changelog generation does not.

Doing a cz check against the range fails the commit validation. The commit message of the squashed PR looks something like this:

PR Title here (#123)

refactor: aaaa

fix: bbb

and when doing a cz changelog {version_number}, I get an empty changelog, but expecting

## version (date)

### Fix
- bbb

### Refactor
- aaaa

The only solution I have is to disable "squash and merge", as well as "create a merge commit", and only enabling "rebase and merge"

bavedarnow commented 1 year ago

I made this in the wrong repo. Opened it here https://github.com/commitizen-tools/commitizen/issues/651