Skip to content

Commit 60b2bbd

Browse files
Merge pull request #3 from fullstackzach/another-test-branch
Another test branch
2 parents 53fc3ae + 58f3c73 commit 60b2bbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/scripts/commit-checker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ done
3939
# If any commit are invalid, print reject message
4040
if [ "$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 "************"

.github/workflows/commit-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [pull_request]
55

66
jobs:
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:

0 commit comments

Comments
 (0)