| 1 |
# General Options |
| 2 |
|
| 3 |
## `name` |
| 4 |
|
| 5 |
Name of the committing rules to use. What we generally call the **commit conventions**. |
| 6 |
|
| 7 |
- Type: `str` |
| 8 |
- Default: `"cz_conventional_commits"` |
| 9 |
- Options |
| 10 |
- `cz_conventional_commits`: uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) |
| 11 |
- `cz_jira`: jira [smart commits](https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/) |
| 12 |
- `cz_customize`: (**not recommended**) customize the convention directly in the `TOML` file under `[tool.commitizen.customize]`, read [Customize in configuration file](../customization/config_file.md) for more. There's a plan to provide a different functionality. |
| 13 |
|
| 14 |
You can write your own convention, and release it on PyPI, check [Customizing through a Python class](../customization/python_class.md). |
| 15 |
|
| 16 |
## `version` |
| 17 |
|
| 18 |
Current version. |
| 19 |
|
| 20 |
Required if you use `version_provider = "commitizen"`. |
| 21 |
|
| 22 |
- Type: `str` |
| 23 |
- Default: `None` |
| 24 |
|
| 25 |
Example: `"0.1.2"`. |
| 26 |
|
| 27 |
## `style` |
| 28 |
|
| 29 |
Style for the prompts. |
| 30 |
|
| 31 |
- Type: `list` |
| 32 |
- Default: `[]` |
| 33 |
|
| 34 |
It will merge this value with default style. See [Styling your prompts with your favorite colors](https://github.com/tmbo/questionary#additional-features) for more details. |
| 35 |
|
| 36 |
## `customize` |
| 37 |
|
| 38 |
Custom rules for committing and bumping. |
| 39 |
|
| 40 |
- Type: `dict` |
| 41 |
- Default: `None` |
| 42 |
|
| 43 |
**Supported in TOML, JSON, and YAML configuration files.** |
| 44 |
|
| 45 |
See [customization](../customization/config_file.md) for more details. |
| 46 |
|
| 47 |
## `use_shortcuts` |
| 48 |
|
| 49 |
Show keyboard shortcuts when selecting from a list. When enabled, each choice shows a shortcut key; press that key or use the arrow keys to select. |
| 50 |
|
| 51 |
- Type: `bool` |
| 52 |
- Default: `False` |
| 53 |
|
| 54 |
**Example** |
| 55 |
|
| 56 |
```toml title="pyproject.toml" |
| 57 |
[tool.commitizen] |
| 58 |
name = "cz_conventional_commits" |
| 59 |
use_shortcuts = true |
| 60 |
``` |
| 61 |
|
| 62 |
Run `cz commit` to see shortcut keys on each choice. |
| 63 |
|
| 64 |
 |
| 65 |
|
| 66 |
To customize which key is used for each choice (via the `key` field when using `cz_customize`), see [shortcut keys customization](../customization/config_file.md#shortcut-keys). |