ci(cz): adding commitizen config
This commit is contained in:
parent
e58c601656
commit
9feea56056
2 changed files with 26 additions and 20 deletions
7
.cz.toml
Normal file
7
.cz.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[tool.commitizen]
|
||||||
|
name = "cz_conventional_commits"
|
||||||
|
tag_format = "v$version"
|
||||||
|
version_scheme = "semver"
|
||||||
|
version_provider = "cargo"
|
||||||
|
update_changelog_on_bump = true
|
||||||
|
major_version_zero = true
|
||||||
|
|
@ -1,21 +1,20 @@
|
||||||
# See https://pre-commit.com for more information
|
|
||||||
# See https://pre-commit.com/hooks.html for more hooks
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- hooks:
|
||||||
rev: v3.2.0
|
|
||||||
hooks:
|
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://github.com/FeryET/pre-commit-rust
|
repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v1.1.0
|
rev: v3.2.0
|
||||||
hooks:
|
- hooks:
|
||||||
- id: fmt
|
- id: fmt
|
||||||
- id: cargo-check
|
- id: cargo-check
|
||||||
- repo: https://github.com/compilerla/conventional-pre-commit
|
repo: https://github.com/FeryET/pre-commit-rust
|
||||||
rev: v3.4.0
|
rev: v1.1.0
|
||||||
hooks:
|
- hooks:
|
||||||
- id: conventional-pre-commit
|
- id: commitizen
|
||||||
stages: [commit-msg]
|
- id: commitizen-branch
|
||||||
args: []
|
stages:
|
||||||
|
- push
|
||||||
|
repo: https://github.com/commitizen-tools/commitizen
|
||||||
|
rev: master
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue