Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/commit-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ done
# If any commit are invalid, print reject message
if [ "$invalidCommit" == true ]; then
echo "Commits must include a JIRA ticket number e.g. AAA-1234"
echo "You can skip this step if necessary by running \"git --amend\" and add \"[skip jira]\" in your commit message"
echo "You can skip this step if necessary by running \"git commit --amend\" and add \"[skip jira]\" in your commit message"
echo "Please fix the commit message(s) and push again."
echo "https://help.github.com/en/articles/changing-a-commit-message"
echo "************"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]

jobs:
commit-checker:
if: "!contains(github.event.commits[0].message, '[skip jira]')"
if: "!contains(github.event.head_commit.message, '[skip jira]')"
runs-on: ubuntu-latest

steps:
Expand Down