feat: configure commitizen

This commit is contained in:
Bertrand Lanson 2024-04-22 21:19:24 +02:00
parent 6b48e28ae0
commit 9203d38647
2 changed files with 15 additions and 0 deletions

7
.cz.toml Normal file
View File

@ -0,0 +1,7 @@
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "scm"
update_changelog_on_bump = true
bump_message = "release: $current_version → $new_version [skip-ci]"

View File

@ -18,3 +18,11 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.24.0
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- push