From 59b8a5a81fbb6a3c1b50122784dfc6c51e4a5638 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Fri, 25 Sep 2020 09:36:47 +0200 Subject: [PATCH] docs: add convential commits commit-msg hook --- docs/git/hooks/commit-msg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 docs/git/hooks/commit-msg diff --git a/docs/git/hooks/commit-msg b/docs/git/hooks/commit-msg new file mode 100755 index 000000000..80493f308 --- /dev/null +++ b/docs/git/hooks/commit-msg @@ -0,0 +1,6 @@ +#!/bin/sh + +if ! grep -qE "^(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\((common|core|crypto|legacy|python|storage|tools|vendor)\))?: " "$1" ; then + echo "Conventional Commits validation failed" + exit 1 +fi