Skip to content

Commit

Permalink
feat: add git hook for running commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nhunt committed Oct 7, 2020
1 parent 67c1053 commit e5562b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git/hooks/commit-msg
@@ -0,0 +1,12 @@
#!/bin/sh

# Check for existance of executable $file. If present, execute it otherwise
# print out message. Exit code will be 0 if the $file does not exist, else it
# will be the exit code from the execution of the $file

file=./scripts/commitlint
if [ -x $file ]; then
$file
else
echo "File $file not found."
fi

0 comments on commit e5562b0

Please sign in to comment.