mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
docs: add convential commits commit-msg hook
This commit is contained in:
parent
649e31cef0
commit
59b8a5a81f
6
docs/git/hooks/commit-msg
Executable file
6
docs/git/hooks/commit-msg
Executable 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
|
Loading…
Reference in New Issue
Block a user