Open
Description
Description
Maybe I'm missing something but I'm not able to generate a changelog properly with custom configurations (cz_customize).
Steps to reproduce
cz --debug changelog --dry-run
Current behavior
I've tried different configurations through cz_customize, although the customization related to commits seems ok, the changelog generation doesn't work for me. I'm not able to generate a changelog as I do with the cz_conventional_commits. There is no filtering on the commits, no grouping by change_type as you can see below.
File: .cz.yaml
commitizen:
name: cz_customize
customize:
message_template: "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
example: 'feature: this feature enable customize through config file'
schema: "<type>: <body>"
schema_pattern: (build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?!?:(\s.*)
changelog_pattern: ^(feat|fix|chore|refactor|perf)(\(.+\))?(!)?
change_type_order: ["BREAKING CHANGE", "feat", "fix", "refactor", "chore", "perf"]
info_path: cz_customize_info.txt
info: This is customized info
questions:
- type: list
name: change_type
choices:
- value: feature
name: 'feature: A new feature.'
- value: bug fix
name: 'bug fix: A bug fix.'
message: Select the type of change you are committing
- type: input
name: message
message: Body.
- type: confirm
name: show_message
message: Do you want to add body message in commit?
cz --debug changelog --dry-run
## Unreleased
- feat(DL-4567): new feature test
- fix(DL-1234): qweqwe
Screenshots
Desired behavior
File: .cz.yaml
commitizen:
name: cz_customize
customize:
message_template: "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
example: 'feature: this feature enable customize through config file'
schema: "<type>: <body>"
schema_pattern: (build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?!?:(\s.*)
changelog_pattern: ^(feat|fix|chore|refactor|perf)(\(.+\))?(!)?
change_type_order: ["BREAKING CHANGE", "feat", "fix", "refactor", "chore", "perf"]
info_path: cz_customize_info.txt
info: This is customized info
questions:
- type: list
name: change_type
choices:
- value: feature
name: 'feature: A new feature.'
- value: bug fix
name: 'bug fix: A bug fix.'
message: Select the type of change you are committing
- type: input
name: message
message: Body.
- type: confirm
name: show_message
message: Do you want to add body message in commit?
cz --debug changelog --dry-run`
## Unreleased
### Feat
- **DL-4567**: new feature test
### Fix
- **DL-1234**: qweqwe
Environment
Commitizen Version: 2.20.0
Python Version: 3.10.0 (default, Oct 12 2021, 22:37:59) [Clang 13.0.0 (clang-1300.0.29.3)]
Operating System: Darwin