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
See [the template customization section](customization.md#customizing-the-changelog-template).
294
296
297
+
### `--build-metadata`
298
+
299
+
Provides a way to specify additional metadata in the version string. This parameter is not compatible with `--local-version` as it uses the same part of the version string.
300
+
301
+
```bash
302
+
cz bump --build-metadata yourmetadata
303
+
```
304
+
305
+
Will create a version like `1.1.2+yourmetadata`.
306
+
This can be useful for multiple things
307
+
* Git hash in version
308
+
* Labeling the version with additional metadata.
309
+
310
+
Note that Commitizen ignores everything after `+` when it bumps the version. It is therefore safe to write different build-metadata between versions.
311
+
312
+
You should normally not use this functionality, but if you decide to do, keep in mind that
313
+
* Version `1.2.3+a`, and `1.2.3+b` are the same version! Tools should not use the string after `+` for version calculation. This is probably not a guarantee (example in helm) even tho it is in the spec.
314
+
* It might be problematic having the metadata in place when doing upgrades depending on what tool you use.
315
+
295
316
## Avoid raising errors
296
317
297
318
Some situations from commitizen raise an exit code different than 0.
0 commit comments