From 9feea560564fd16d76b75d4c3cf4ea16ba1a01c1 Mon Sep 17 00:00:00 2001 From: Scott Lyons Date: Sat, 10 Aug 2024 18:04:07 -0700 Subject: [PATCH] ci(cz): adding commitizen config --- .cz.toml | 7 +++++++ .pre-commit-config.yaml | 39 +++++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 .cz.toml diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..db8c69b --- /dev/null +++ b/.cz.toml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfa290a..7e98067 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,20 @@ -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files -- repo: https://github.com/FeryET/pre-commit-rust - rev: v1.1.0 - hooks: - - id: fmt - - id: cargo-check -- repo: https://github.com/compilerla/conventional-pre-commit - rev: v3.4.0 - hooks: - - id: conventional-pre-commit - stages: [commit-msg] - args: [] +- hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 +- hooks: + - id: fmt + - id: cargo-check + repo: https://github.com/FeryET/pre-commit-rust + rev: v1.1.0 +- hooks: + - id: commitizen + - id: commitizen-branch + stages: + - push + repo: https://github.com/commitizen-tools/commitizen + rev: master