Created
February 22, 2014 01:40
-
-
Save sajnikanth/9147365 to your computer and use it in GitHub Desktop.
Pre-commit hook for JIRA
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 | |
project_key="DESK-" | |
test "" != "$(grep $project_key "$1")" || { | |
echo >&2 "ERROR: Commit message is missing JIRA ticket number" | |
exit 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment