Skip to content

Commit b40ea22

Browse files
Merge pull request #18 from fullstackzach/tinker2
bad commit
2 parents 7c4e781 + 525e9b2 commit b40ea22

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/scripts/commit-linting-loose.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858

5959
# If we made it this far, no JIRA ticket # was detected in a commit or branch, print the reject message and fail the job
6060

61-
echo "⛔️ At least one commit message OR your branch name must include a JIRA ticket number e.g. \"AUS-1234\". This can be anywhere in your commit"
61+
echo "⛔️ At least one commit OR your branch name must include a JIRA ticket number e.g. \"AUS-1234\". This can be anywhere in your commit"
6262
echo "You can skip this whole step if necessary by running \"git commit --amend\" and add \"[skip jira]\" in your last commit message, and force-push"
6363
echo "Please fix the commit message and push again."
6464
echo "https://help.github.com/en/articles/changing-a-commit-message"

.github/workflows/commit-linting.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
ref: '${{ github.event.pull_request.base.ref }}'
1515

1616
- name: Branch or Commits includes a Jira issue
17-
run: bash ${GITHUB_WORKSPACE}/.github/scripts/commit-linting-loose.sh ${{ github.event.pull_request.head.ref }} ${{ github.event.pull_request.base.ref }}
17+
run: |
18+
git checkout ${{ github.event.pull_request.head.ref }}
19+
bash ${GITHUB_WORKSPACE}/.github/scripts/commit-linting-loose.sh ${{ github.event.pull_request.head.ref }} ${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)