-
-
Save venkatasykam/b3993986912284bc063e1a3935895dfc to your computer and use it in GitHub Desktop.
JIRA code commit msg hook; presumes merges happen on remote (via PR mechanism, etc)
This file contains 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 | |
# .git/hooks/commit-msg | |
test "" != "$(egrep '[A-Z]{3,}-\d+' "$1")" || { | |
echo >&2 Commit message requires JIRA code. | |
exit 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment