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
|`type`|`str`|`None`| The type of questions. Valid type: `list`, `input` and etc. [See More](https://github.com/tmbo/questionary#different-question-types)|
66
-
|`name`|`str`|`None`| The key for the value answered by user. It's used in `message_template`|
67
-
|`message`|`str`|`None`| Detail description for the question. |
|`type`|`str`|`None`| The type of questions. Valid type: `list`, `input` and etc. [See More](https://github.com/tmbo/questionary#different-question-types)|
66
+
|`name`|`str`|`None`| The key for the value answered by user. It's used in `message_template`|
67
+
|`message`|`str`|`None`| Detail description for the question. |
68
68
|`choices`|`list`|`None`| (OPTIONAL) The choices when `type = list`. Either use a list of values or a list of dicitionaries with `name` and `value` keys. See examples above. |
69
-
|`default`|`Any`|`None`| (OPTIONAL) The default value for this question. |
70
-
|`filter`|`str`|`None`| (Optional) Validator for user's answer. **(Work in Progress)**|
69
+
|`default`|`Any`|`None`| (OPTIONAL) The default value for this question. |
70
+
|`filter`|`str`|`None`| (Optional) Validator for user's answer. **(Work in Progress)**|
71
71
72
72
## 2. Customize through customizing a class
73
73
@@ -206,13 +206,13 @@ cz -n cz_strange bump
206
206
The changelog generator should just work in a very basic manner without touching anything.
207
207
You can customize it of course, and this are the variables you need to add to your custom `BaseCommitizen`.
|`commit_parser`|`str`| NO | Regex which should provide the variables explained in the [changelog description][changelog-des]|
212
-
|`changelog_pattern`|`str`| NO | Regex to validate the commits, this is useful to skip commits that don't meet your rulling standards like a Merge. Usually the same as bump_pattern |
213
-
|`change_type_map`|`dict`| NO | Convert the title of the change type that will appear in the changelog, if a value is not found, the original will be provided |
214
-
|`changelog_message_builder_hook`|`method: (dict, git.GitCommit) -> dict`| NO | Customize with extra information your message output, like adding links, this function is executed per parsed commit. |
215
-
|`changelog_hook`|`method: (full_changelog: str, partial_changelog: Optional[str]) -> str`| NO | Receives the whole and partial (if used incremental) changelog. Useful to send slack messages or notify a compliance department. Must return the full_changelog |
|`commit_parser`|`str`| NO | Regex which should provide the variables explained in the [changelog description][changelog-des]|
212
+
|`changelog_pattern`|`str`| NO | Regex to validate the commits, this is useful to skip commits that don't meet your rulling standards like a Merge. Usually the same as bump_pattern|
213
+
|`change_type_map`|`dict`| NO | Convert the title of the change type that will appear in the changelog, if a value is not found, the original will be provided|
214
+
|`changelog_message_builder_hook`|`method: (dict, git.GitCommit) -> dict`| NO | Customize with extra information your message output, like adding links, this function is executed per parsed commit. Each GitCommit contains the following attrs: `rev`, `title`, `body`, `author`, `author_email`|
215
+
|`changelog_hook`|`method: (full_changelog: str, partial_changelog: Optional[str]) -> str`| NO | Receives the whole and partial (if used incremental) changelog. Useful to send slack messages or notify a compliance department. Must return the full_changelog|
216
216
217
217
```python
218
218
from commitizen.cz.base import BaseCommitizen
@@ -232,7 +232,7 @@ class StrangeCommitizen(BaseCommitizen):
0 commit comments