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
|`name`|`str`|`"cz_conventional_commits"`| Name of the committing rules to use |
8
+
|`version`|`str`|`None`| Current version. Example: "0.1.2" |
9
+
|`version_files`|`list`|`[ ]`| Files were the version will be updated. A pattern to match a line, can also be specified, separated by `:`[See more][version_files]|
10
+
|`tag_format`|`str`|`None`| Format for the git tag, useful for old projects, that use a convention like `"v1.2.1"`. [See more][tag_format]|
11
+
|`update_changelog_on_bump`|`bool`|`false`| Create changelog when running `cz bump`|
12
+
|`gpg_sign`|`bool`|`false`| Use gpg signed tags instead of lightweight tags. |
13
+
|`annotated_tag`|`bool`|`false`| Use annotated tags instead of lightweight tags. [See difference][annotated-tags-vs-lightweight]|
|`allow_abort`|`bool`|`false`| Disallow empty commit messages, useful in ci. [See more][allow_abort]|
16
+
|`changelog_file`|`str`|`CHANGELOG.md`| filename of exported changelog |
17
+
|`changelog_incremental`|`bool`|`false`| Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file. Note: when doing `cz bump --changelog` this is automatically set to `true`|
18
+
|`changelog_start_rev`|`str`|`None`| Start from a given git rev to generate the changelog |
19
+
|`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)][additional-features]|
20
+
|`customize`|`dict`|`None`|**This is only supported when config through `toml`.** Custom rules for committing and bumping. [See more][customization]|
21
+
|`use_shortcuts`|`bool`|`false`| If enabled, commitizen will show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. [See more][shortcuts]|
22
+
|`major_version_zero`|`bool`|`false`| When true, breaking changes on a `0.x` will remain as a `0.x` version. On `false`, a breaking change will bump a `0.x` version to `1.0`. [major-version-zero]|
23
+
3
24
## pyproject.toml or .cz.toml
4
25
5
-
Add an entry to `pyproject.toml` or `.cz.toml`. Recommended for **python** projects.
26
+
Default and recommended configuration format for a project.
27
+
For a **python** project, we recommend adding an entry to your `pyproject.toml`.
28
+
You can also create a `.cz.toml` file at the root of your project folder.
29
+
30
+
Example configuration:
6
31
7
32
```toml
8
33
[tool.commitizen]
@@ -26,123 +51,70 @@ style = [
26
51
]
27
52
```
28
53
29
-
`.cz.toml` is recommended for **other languages** projects (js, go, etc).
30
-
31
54
## .cz.json or cz.json
32
55
33
-
JSON might be a more common configuration format for non-python projects, so Commitizen supports JSON config files, now.
56
+
Commitizen has support for JSON configuration. Recommended for `NodeJS` projects.
| `version_files` | `list` | `[ ]` | Files were the version will be updated. A pattern to match a line, can also be specified, separated by `:` [See more][version_files] |
130
-
| `tag_format` | `str` | `None` | Format for the git tag, useful for old projects, that use a convention like `"v1.2.1"`. [See more][tag_format] |
| `changelog_incremental` | `bool` | `false` | Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file. Note: when doing `cz bump --changelog` this is automatically set to `true` |
138
-
| `changelog_start_rev` | `str` | `None` | Start from a given git rev to generate the changelog |
139
-
| `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)][additional-features] |
140
-
| `customize` | `dict` | `None` | **This is only supported when config through `toml`.** Custom rules for committing and bumping. [See more][customization] |
141
-
| `use_shortcuts` | `bool` | `false` | If enabled, commitizen will show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. [See more][shortcuts] |
0 commit comments