You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,4 @@ The extra tab before the square brakets (`]`) at the end is required.
65
65
|`tag_format`|`str`|`None`| Format for the git tag, useful for old projects, that use a convention like `"v1.2.1"`. [See more](https://woile.github.io/commitizen/bump#tag_format)|
|`style`|`list`| see above | Style for the prompts (It will merge this value with default style.) [See More (Styling your prompts with your favorite colors)](https://github.com/tmbo/questionary#additional-features)|
68
+
|`customize`|`dict`|`None`|**This is only supported when config through `toml`.** Custom rules for committing and bumping. [See more](https://woile.github.io/commitizen/customization/)|
message = "Select the type of change you are committing"
169
+
170
+
[[tool.commitizen.customize.questions]]
171
+
type = "input"
172
+
name = "message"
173
+
message = "Body."
174
+
```
175
+
176
+
### Customize configuration
177
+
178
+
| Parameter | Type | Default | Description |
179
+
| --------- | ---- | ------- | ----------- |
180
+
|`question`|`dict`|`None`| Questions regarding the commit message. Detatiled below. |
181
+
|`message_template`|`str`|`None`| The template for generating message from the given answers. `message_template` should follow the python string formatting specification, and all the variables in this template should be defined in `name` in `questions`. |
182
+
|`example`|`str`|`None`| (OPTIONAL) Provide an example to help understand the style. Used by `cz example`. |
183
+
|`schema`|`str`|`None`| (OPTIONAL) Show the schema used. Used by `cz schema`. |
184
+
|`info_path`|`str`|`None`| (OPTIONAL) The path to the file that contains explanation of the commit rules. Used by `cz info`. If not provided `cz info`, will load `info` instead. |
185
+
|`info`|`str`|`None`| (OPTIONAL) Explanation of the commit rules. Used by `cz info`. |
186
+
|`bump_map`|`dict`|`None`| (OPTIONAL) Dictionary mapping the extracted information to a `SemVer` increment type (`MAJOR`, `MINOR`, `PATCH`) |
187
+
|`bump_pattern`|`str`|`None`| (OPTIONAL) Regex to extract information from commit (subject and body) |
188
+
189
+
#### Detailed `question` content
190
+
191
+
| Parameter | Type | Default | Description |
192
+
| --------- | ---- | ------- | ----------- |
193
+
|`type`|`str`|`None`| The type of questions. Valid type: `list`, `input` and etc. [See More](https://github.com/tmbo/questionary#different-question-types)|
194
+
|`name`|`str`|`None`| The key for the value answered by user. It's used in `message_template`|
195
+
|`message`|`str`|`None`| Detail description for the question. |
196
+
|`choices`|`list`|`None`| (OPTIONAL) The choices when `type = choice`. It should be list of dictionaries with `name` and `value`. (e.g., `[{value = "feature", name = "feature: A new feature."}, {value = "bug fix", name = "bug fix: A bug fix."}]`) |
197
+
|`default`|`Any`|`None`| (OPTIONAL) The default value for this question. |
198
+
|`filter`|`str`|`None`| (Optional) Validator for user's answer. **(Work in Progress)**|
0 commit comments