aboutsummaryrefslogtreecommitdiffstats
path: root/.husky
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-04 08:57:42 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-04 08:59:56 +0530
commit877d8fc68af12d092ed5405e359d7c9155d2d1fe (patch)
tree5da2be935aac41fcefb96c49b5feecb5a1b3e6f3 /.husky
parent5.6.1-nightly.13 [skip ci] (diff)
downloadferdium-app-877d8fc68af12d092ed5405e359d7c9155d2d1fe.tar.gz
ferdium-app-877d8fc68af12d092ed5405e359d7c9155d2d1fe.tar.zst
ferdium-app-877d8fc68af12d092ed5405e359d7c9155d2d1fe.zip
chore: incorporate commitizen as a git pre-commit hook
Diffstat (limited to '.husky')
-rwxr-xr-x.husky/prepare-commit-msg10
1 files changed, 10 insertions, 0 deletions
diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg
new file mode 100755
index 000000000..1c2c393cd
--- /dev/null
+++ b/.husky/prepare-commit-msg
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3FILE_NAME="$(dirname "$0")/_/husky.sh"
4
5# Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing npm modules)
6if [ -f $FILE_NAME ]; then
7 . $FILE_NAME
8
9 exec < /dev/tty && git cz --hook || true
10fi