1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

docs: add convential commits commit-msg hook

This commit is contained in:
Tomas Susanka 2020-09-25 09:36:47 +02:00
parent 649e31cef0
commit 59b8a5a81f

6
docs/git/hooks/commit-msg Executable file
View File

@ -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