Created
November 19, 2018 21:00
-
-
Save ain/d29ba5cec8a125db94a68355f2c71fda to your computer and use it in GitHub Desktop.
Check last commit message for [hotfix]
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/bash | |
if [[ `git log -1 --pretty=%B` == *"[hotfix]"* ]]; then | |
echo "HOTFIX!" | |
else | |
echo "NOT HOTFIX!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment