File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3939# If any commit are invalid, print reject message
4040if [ " $invalidCommit " == true ]; then
4141 echo " Commits must include a JIRA ticket number e.g. AAA-1234"
42- echo " You can skip this step if necessary by running \" git --amend\" and add \" [skip jira]\" in your commit message"
42+ echo " You can skip this step if necessary by running \" git commit --amend\" and add \" [skip jira]\" in your commit message"
4343 echo " Please fix the commit message(s) and push again."
4444 echo " https://help.github.com/en/articles/changing-a-commit-message"
4545 echo " ************"
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.commits[0] .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