From a8c5937de590476d2324f2b790ae834bbd47962c Mon Sep 17 00:00:00 2001 From: Alex Povel Date: Mon, 18 Jul 2022 22:06:50 +0200 Subject: [PATCH] feat(git): Add `commitizen` commit lint for Conventional Commits Run `make hooks` to update --- .pre-commit-config.yaml | 4 ++++ Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d1c11b..d3208b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,8 @@ repos: + - repo: https://github.com/commitizen-tools/commitizen + rev: v2.28.0 + hooks: + - id: commitizen - repo: local hooks: - id: check-import-sorting diff --git a/Makefile b/Makefile index 0af4039..a2b8e0c 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ image: # Hooks need to be added here manually if other 'types' are later added: hooks: - @pre-commit install --hook-type pre-push --hook-type pre-commit + @pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg bump: @${RUN} bumpversion $(v) || \