[fix] 空安全 #253
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: 'Commit Check' | |
on: | |
push: | |
jobs: | |
check-commit-message: | |
name: Check Commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Commit Format | |
uses: gsactions/commit-message-checker@v1 | |
with: | |
pattern: '^((Merge pull request(.*))|(Release(.*))|(\[(feature|fix|doc|optimize|refactor|perf|test|chore)((\|)?(feature|fix|doc|optimize|refactor|perf|test|chore))?\][^\[\]]+))$' | |
flags: 'gm' | |
error: 'Please follow the commit style that the project.' |