|
2 | 2 |
|
3 | 3 | ## Settings
|
4 | 4 |
|
5 |
| -| Variable | Type | Default | Description | |
6 |
| -| -------------------------- | ------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
7 |
| -| `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] | |
14 |
| -| `bump_message` | `str` | `None` | Create custom commit message, useful to skip ci. [See more][bump_message] | |
15 |
| -| `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] | |
| 5 | +| Variable | Type | Default | Description | |
| 6 | +| -------------------------- | ------ | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 7 | +| `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] | |
| 14 | +| `bump_message` | `str` | `None` | Create custom commit message, useful to skip ci. [See more][bump_message] | |
| 15 | +| `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 | +| `prerelease_offset` | `int` | `0` | In special cases it may be necessary that a prerelease cannot start with a 0, e.g. in an embedded project the individual characters are encoded in bytes. This can be done by specifying an offset from which to start counting. [prerelease-offset] | |
23 | 24 |
|
24 | 25 | ## pyproject.toml or .cz.toml
|
25 | 26 |
|
@@ -115,6 +116,7 @@ commitizen:
|
115 | 116 | [tag_format]: bump.md#tag_format
|
116 | 117 | [bump_message]: bump.md#bump_message
|
117 | 118 | [major-version-zero]: bump.md#-major-version-zero
|
| 119 | +[prerelease-offset]: bump.md#-prerelease_offset |
118 | 120 | [allow_abort]: check.md#allow-abort
|
119 | 121 | [additional-features]: https://github.com/tmbo/questionary#additional-features
|
120 | 122 | [customization]: customization.md
|
|
0 commit comments