-
-
Save KyMidd/eb4f89bfb1ea1890a476571c8ebd0523 to your computer and use it in GitHub Desktop.
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
| # If any commit are invalid, print reject message | |
| if [[ "$invalidTicket" == true ]]; then | |
| echo "❌ Your push was rejected because at least one commit message on this branch is invalid" | |
| echo "❌ Please fix the commit message(s) and push again." | |
| echo "❌ https://help.github.com/en/articles/changing-a-commit-message" | |
| echo "************" | |
| exit 1 | |
| else | |
| echo "************" | |
| echo "All commits are valid" | |
| echo "************" | |
| exit 0 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment