2021-11-10 00:22:48 +00:00
|
|
|
name: Commit Messages
|
2021-11-07 23:26:12 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-commit-message:
|
2021-11-10 00:22:48 +00:00
|
|
|
name: Check
|
2021-11-07 23:26:12 +00:00
|
|
|
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 }}
|