|
110 | 110 | - commitizen/__version__.py |
111 | 111 | - pyproject.toml |
112 | 112 | customize: |
113 | | - message_template: "{{change_type}}:{% if show_message %} {{message}}{% endif %}" |
| 113 | + message_template: '{{change_type}}:{% if show_message %} {{message}}{% endif %}' |
114 | 114 | example: 'feature: this feature enables customization through a config file' |
115 | | - schema: "<type>: <body>" |
116 | | - schema_pattern: "(feature|bug fix):(\\s.*)" |
117 | | - bump_pattern: "^(break|new|fix|hotfix)" |
| 115 | + schema: '<type>: <body>' |
| 116 | + schema_pattern: '(feature|bug fix):(\\s.*)' |
| 117 | + bump_pattern: '^(break|new|fix|hotfix)' |
| 118 | + commit_parser: '^(?P<change_type>feature|bug fix):\\s(?P<message>.*)?' |
| 119 | + changelog_pattern: '^(feature|bug fix)?(!)?' |
| 120 | + change_type_map: |
| 121 | + feature: Feat |
| 122 | + bug fix: Fix |
118 | 123 | bump_map: |
119 | 124 | break: MAJOR |
120 | 125 | new: MINOR |
121 | 126 | fix: PATCH |
122 | 127 | hotfix: PATCH |
123 | | - change_type_order: ["perf", "BREAKING CHANGE", "feat", "fix", "refactor"] |
| 128 | + change_type_order: ['perf', 'BREAKING CHANGE', 'feat', 'fix', 'refactor'] |
124 | 129 | info: This is a customized cz. |
125 | 130 | questions: |
126 | 131 | - type: list |
|
324 | 329 |
|
325 | 330 | @pytest.fixture( |
326 | 331 | params=[ |
327 | | - TomlConfig(data=TOML_STR, path=Path("not_exist.toml")), |
328 | | - JsonConfig(data=JSON_STR, path=Path("not_exist.json")), |
| 332 | + TomlConfig(data=TOML_STR, path="not_exist.toml"), |
| 333 | + JsonConfig(data=JSON_STR, path="not_exist.json"), |
| 334 | + YAMLConfig(data=YAML_STR, path="not_exist.yaml"), |
329 | 335 | ] |
330 | 336 | ) |
331 | 337 | def config(request): |
|
0 commit comments