Skip to content

Commit 27c4232

Browse files
Merge pull request #4 from fullstackzach/another-test-branch
update message
2 parents 60b2bbd + 00a0d50 commit 27c4232

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/scripts/commit-checker.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ for commit in $BRANCH_COMMITS; do
3636
invalidCommit=true
3737
fi
3838
done
39-
# If any commit are invalid, print reject message
39+
40+
# If any commit are invalid, print the reject message
4041
if [ "$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"

.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.head_commit.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)