-
-
Save KyMidd/c4c30fa8b240853059bb8e343ccc54fd 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 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