File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ for commit in $BRANCH_COMMITS; do
3636 invalidCommit=true
3737 fi
3838done
39- # If any commit are invalid, print reject message
39+
40+ # If any commit are invalid, print the reject message
4041if [ " $invalidCommit " == true ]; then
41- echo " Commits must include a JIRA ticket number e.g. AAA-1234"
42+ echo " Commit messages must include a JIRA ticket number e.g. \" AAA-1234\" . This can be anywhere in your commit "
4243 echo " You can skip this step if necessary by running \" git commit --amend\" and add \" [skip jira]\" in your commit message"
4344 echo " Please fix the commit message(s) and push again."
4445 echo " https://help.github.com/en/articles/changing-a-commit-message"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ on: [pull_request]
55
66jobs :
77 commit-checker :
8- if : " !contains(github.event.head_commit.message, '[skip jira]')"
8+ if : ${{ !contains(github.event.head_commit.message, '[skip jira]') }}
99 runs-on : ubuntu-latest
1010
1111 steps :
You can’t perform that action at this time.
0 commit comments