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-linting-loose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fi

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

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"
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"
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"
echo "Please fix the commit message and push again."
echo "https://help.github.com/en/articles/changing-a-commit-message"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/commit-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jobs:
ref: '${{ github.event.pull_request.base.ref }}'

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