Skip to content

Commit

Permalink
Fix #192, Adds check commit message job in format check
Browse files Browse the repository at this point in the history
Adds pattern that accepts commit msgs with "Fix [OR] HotFix [OR] Partial #XYZ <description>",
Adds pattern that accepts commit msgs with "Merge pull request #XYZ <description>",
Adds pattern that accepts commit msgs with "IC: <description>"
Adds conditional for commit msg job to run only on pull-requests
  • Loading branch information
chillfig committed May 5, 2022
1 parent 753ed54 commit c05b5e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,17 @@ jobs:
cat style_differences.txt
exit -1
fi
check-commit-message:
name: Check Commit Message
needs: check-for-duplicates
# Only run for pull-requests.
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-18.04
timeout-minutes: 15
steps:
- name: Check for Fix / HotFix / Partial
uses: gsactions/commit-message-checker@v1
with:
pattern: '^((Fix|HotFix|Partial)\s\#[0-9]+,\s[a-zA-Z0-9]+|Merge\spull\srequest\s\#[0-9]+\s[a-zA-Z0-9]+|IC:\s[a-zA-Z0-9]+)'
error: 'You need at least one "Fix #<issue number>, <short description>" line. "HotFix" and "Partial" are also acceptable.'

0 comments on commit c05b5e3

Please sign in to comment.