Make reset to default negative #301
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Git - Check commit message style | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
check-commit-message-style: | |
name: Check commit message style | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check against guidelines | |
uses: mristin/[email protected] | |
with: | |
# Commit messages are allowed to be subject only, no body | |
allow-one-liners: 'true' | |
# This action defaults to 50 char subjects, but 74 is fine. | |
max-subject-line-length: '74' | |
# The action's wordlist is a bit short. Add more accepted verbs | |
additional-verbs: 'restart, coalesce' | |
- name: Check for unicode whitespaces | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
# Pattern matches strings not containing weird unicode whitespace/separator characters | |
# \P{Z} = All non-whitespace characters (the u-flag is needed to enable \P{Z}) | |
# [ \t\n] = Allowed whitespace characters | |
pattern: '^(\P{Z}|[ \t\n])+$' | |
flags: 'u' | |
error: 'Detected unicode whitespace character in commit message.' | |
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request | |
accessToken: ${{ secrets.GITHUB_TOKEN }} # only required if checkAllCommitMessages is true |