Created
September 23, 2014 11:31
-
-
Save jamesbloomer/fe23909ef1ee955c849c to your computer and use it in GitHub Desktop.
Commit msg check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
grep -E -q 'DF-[0-9]{4}' $1 || { | |
echo >&2 "No ticket number DF-XXXX in commit message" | |
exit 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
save it as .git/hooks/commit-msg