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
Allow some prefixes and do not try to match the regex when checking the message. [Read more][allowed_prefixes]
129
114
130
-
Type: `str`
115
+
### `changelog_file`
131
116
132
-
Default: `CHANGELOG.md`
117
+
- Type: `str`
118
+
- Default: `CHANGELOG.md`
133
119
134
120
Filename of exported changelog
135
121
136
122
### `changelog_format`
137
123
138
-
Type: `str`
124
+
- Type: `str`
125
+
- Default: `None`
139
126
140
-
Default: None
141
-
142
-
Format used to parse and generate the changelog, If not specified, guessed from [`changelog_file`](#changelog_file).
127
+
Format used to parse and generate the changelog. If not specified, guessed from [`changelog_file`](#changelog_file).
143
128
144
129
### `changelog_incremental`
145
130
146
-
Type: `bool`
131
+
- Type: `bool`
132
+
- Default: `false`
147
133
148
-
Default: `false`
134
+
Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file.
149
135
150
-
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`
136
+
!!! note
137
+
When doing `cz bump --changelog` this is automatically set to `true`
151
138
152
139
### `changelog_start_rev`
153
140
154
-
Type: `str`
155
-
156
-
Default: `None`
141
+
- Type: `str`
142
+
- Default: `None`
157
143
158
144
Start from a given git rev to generate the changelog
159
145
160
146
### `changelog_merge_prerelease`
161
147
162
-
Type: `bool`
163
-
164
-
Default: `false`
148
+
- Type: `bool`
149
+
- Default: `false`
165
150
166
151
Collect all changes of prerelease versions into the next non-prerelease version when creating the changelog.
167
152
168
153
### `style`
169
154
170
-
Type: `list`
171
-
172
-
see above
155
+
- Type: `list`
156
+
- Default: `[]`
173
157
174
158
Style for the prompts (It will merge this value with default style.) [See More (Styling your prompts with your favorite colors)][additional-features]
175
159
176
160
### `customize`
177
161
178
-
Type: `dict`
179
-
180
-
Default: `None`
162
+
- Type: `dict`
163
+
- Default: `None`
181
164
182
165
**This is only supported when config through `toml`.** Custom rules for committing and bumping. [Read more][customization]
183
166
184
167
### `use_shortcuts`
185
168
186
-
Type: `bool`
187
-
188
-
Default: `false`
169
+
- Type: `bool`
170
+
- Default: `false`
189
171
190
172
If enabled, Commitizen will show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. [Read more][shortcuts]
191
173
192
174
### `major_version_zero`
193
175
194
-
Type: `bool`
195
-
196
-
Default: `false`
176
+
- Type: `bool`
177
+
- Default: `false`
197
178
198
-
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`. [Read more][major-version-zero]
179
+
If enabled, breaking changes on a `0.x` will remain as a `0.x` version. Otherwise, a breaking change will bump a `0.x` version to `1.0`. [Read more][major-version-zero]
199
180
200
181
### `prerelease_offset`
201
182
202
-
Type: `int`
203
-
204
-
Default: `0`
183
+
- Type: `int`
184
+
- Default: `0`
205
185
206
186
In some circumstances, a prerelease cannot start with a 0, e.g. in an embedded project individual characters are encoded as bytes. This can be done by specifying an offset from which to start counting. [Read more][prerelease-offset]
207
187
208
188
### `pre_bump_hooks`
209
189
210
-
Type: `list[str]`
211
-
212
-
Default: `[]`
190
+
- Type: `list[str]`
191
+
- Default: `[]`
213
192
214
193
Calls the hook scripts **before** bumping version. [Read more][pre_bump_hooks]
215
194
216
195
### `post_bump_hooks`
217
196
218
-
Type: `list[str]`
219
-
220
-
Default: `[]`
197
+
- Type: `list[str]`
198
+
- Default: `[]`
221
199
222
200
Calls the hook scripts **after** bumping the version. [Read more][post_bump_hooks]
223
201
224
202
### `encoding`
225
203
226
-
Type: `str`
227
-
228
-
Default: `utf-8`
204
+
- Type: `str`
205
+
- Default: `utf-8`
229
206
230
207
Sets the character encoding to be used when parsing commit messages. [Read more][encoding]
231
208
232
209
### `template`
233
210
234
-
Type: `str`
235
-
236
-
Default: `None` (provided by plugin)
211
+
- Type: `str`
212
+
- Default: `None` (provided by plugin)
237
213
238
214
Provide custom changelog jinja template path relative to the current working directory. [Read more][template-customization]
239
215
240
216
### `extras`
241
217
242
-
Type: `dict[str, Any]`
243
-
244
-
Default: `{}`
218
+
- Type: `dict[str, Any]`
219
+
- Default: `{}`
245
220
246
221
Provide extra variables to the changelog template. [Read more][template-customization]
247
222
@@ -255,7 +230,7 @@ You can also create a `.cz.toml` or `cz.toml` file at the root of your project f
255
230
256
231
Example configuration:
257
232
258
-
```toml
233
+
```toml title=".cz.toml"
259
234
[tool.commitizen]
260
235
name = "cz_conventional_commits"
261
236
version = "0.1.0"
@@ -282,7 +257,7 @@ style = [
282
257
283
258
Commitizen has support for JSON configuration. Recommended for `NodeJS` projects.
284
259
285
-
```json
260
+
```json title=".cz.json"
286
261
{
287
262
"commitizen": {
288
263
"name": "cz_conventional_commits",
@@ -308,7 +283,7 @@ Commitizen has support for JSON configuration. Recommended for `NodeJS` projects
308
283
309
284
YAML configuration is supported by Commitizen. Recommended for `Go`, `ansible`, or even `helm` charts projects.
310
285
311
-
```yaml
286
+
```yaml title=".cz.yaml"
312
287
commitizen:
313
288
name: cz_conventional_commits
314
289
version: 0.1.0
@@ -371,7 +346,7 @@ version_provider = "pep621"
371
346
372
347
You can add your own version provider by extending `VersionProvider` and exposing it on the `commitizen.provider` entrypoint.
373
348
374
-
Here is a quick example of a `my-provider` provider reading and writing version in a `VERSION` file.
349
+
Here is a quick example of a provider reading and writing version in a `VERSION` file.
0 commit comments