Skip to content

Commit 5b14299

Browse files
committed
AUS-1234: fix some typos
1 parent 2192513 commit 5b14299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/commit-linting-loose.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git checkout -q $1
77

88
# Set variables
99
BASE_BRANCH=$2
10-
msg_regex='(AAA|BBB|CCC)\-[0-9]+'
10+
msg_regex='(AUS)\-[0-9]+'
1111
skip_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
5757
fi
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"
6262
echo "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"
6363
echo "Please fix the commit message and push again."
6464
echo "https://help.github.com/en/articles/changing-a-commit-message"

0 commit comments

Comments
 (0)