aboutsummaryrefslogtreecommitdiffstats
path: root/.husky
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-04 18:48:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-04 18:48:23 +0530
commitc69ad2997ed7b0c0cbf51d350139f42e5176e6ff (patch)
tree7af5cd3bd68ff9325d4a42553ec88005d45dcb59 /.husky
parentfix: Clear cache button should not log out of services (diff)
downloadferdium-app-c69ad2997ed7b0c0cbf51d350139f42e5176e6ff.tar.gz
ferdium-app-c69ad2997ed7b0c0cbf51d350139f42e5176e6ff.tar.zst
ferdium-app-c69ad2997ed7b0c0cbf51d350139f42e5176e6ff.zip
ci(commits): git commit comments are now enforced
Use 'commitlint' to enforce commit comment structure.
Diffstat (limited to '.husky')
-rwxr-xr-x.husky/commit-msg10
1 files changed, 10 insertions, 0 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg
new file mode 100755
index 000000000..02f50f1de
--- /dev/null
+++ b/.husky/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 npx --no-install commitlint --edit "$1"
10fi