Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created July 7, 2024 19:38
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/c4c30fa8b240853059bb8e343ccc54fd to your computer and use it in GitHub Desktop.
# If commit message doesn't start with Jira ticket, exit
if [ -z "$JIRA_TICKET" ]; then
# No Jira ticket found in title at all, exit with failure code
echo "🔴 No Jira ticket found at beginning of PR title or at beginning of first commit message."
echo "🔴 Please update your PR title. You'll also likely need to \"git commit --amend\" your first commit message so Jira Commit Checker Action will succeed"
print_break
exit_if_not_local 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment