👷 Add commit message checker

pull/28/head
James Panther 2021-11-08 10:26:12 +11:00
parent dae564acca
commit cd968074c9
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
name: Check Commit Messages
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
check-commit-message:
name: Check Commit Messages
runs-on: ubuntu-latest
steps:
- name: Check Gitmoji
uses: gsactions/commit-message-checker@v1
with:
pattern: ^[\u0020-\u007e\u00a0-\u00ff\u0152\u0153\u0178]+'
flags: "g"
error: "Commit messages must start with a Gitmoji character."
excludeDescription: "true"
excludeTitle: "true"
checkAllCommitMessages: "true"
accessToken: ${{ secrets.GITHUB_TOKEN }}