Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created February 19, 2023 20:29
Show Gist options
  • Select an option

  • Save KyMidd/eb4f89bfb1ea1890a476571c8ebd0523 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/eb4f89bfb1ea1890a476571c8ebd0523 to your computer and use it in GitHub Desktop.
# 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