From d4f6856274a4d64c31671b9fcc0095ce301004e2 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 14 Sep 2023 00:34:50 +0200 Subject: [PATCH] feat: use commitlint in pre-commit --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b04a3f..c4043c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,12 @@ repos: args: [--allow-multiple-documents] - id: check-xml - id: check-added-large-files + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook + rev: v9.5.0 + hooks: + - id: commitlint + stages: [commit-msg] + additional_dependencies: ['@commitlint/config-conventional'] - repo: https://github.com/markdownlint/markdownlint rev: v0.12.0 hooks: