File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ git checkout -q $1
77
88# Set variables
99BASE_BRANCH=$2
10- msg_regex=' (AAA|BBB|CCC )\-[0-9]+'
10+ msg_regex=' (AUS )\-[0-9]+'
1111skip_regex=' \[SKIP JIRA\]'
1212
1313# Initialize invalidCommit as false, will be set to true by any invalid commits
@@ -56,9 +56,9 @@ if echo $CURRENT_BRANCH_UPPER | grep -iqE "$msg_regex"; then
5656 exit 0
5757fi
5858
59- # If we made it thsis far, no JIRA ticket # was detected in a commit or branch, print the reject message and fail the job
59+ # If we made it this far, no JIRA ticket # was detected in a commit or branch, print the reject message and fail the job
6060
61- echo " ⛔️ Atleast one commit messages OR your branch name must include a JIRA ticket number e.g. \" AAA-1234\" . This can be anywhere in your commit"
61+ echo " ⛔️ At least one commit message OR your branch name must include a JIRA ticket number e.g. \" AAA-1234\" . This can be anywhere in your commit"
6262echo " You can skip this whole step if necessary by running \" git commit --amend\" and add \" [skip jira]\" in your last commit message, and force-push"
6363echo " Please fix the commit message and push again."
6464echo " https://help.github.com/en/articles/changing-a-commit-message"
You can’t perform that action at this time.
0 commit comments