44# type: docs, feat, fix, refactor, style or test
55# scope (optional): any extra info, (like DMS or whatever)
66
7- name : ' Commit Message Check'
7+ name : " Commit Message Check"
88on : pull_request
99
1010jobs :
@@ -15,19 +15,19 @@ jobs:
1515 - name : Check Commit Format
1616 uses : gsactions/commit-message-checker@v2
1717 with :
18- pattern : ' ^((docs|feat|fix|refactor|style|test|sweep)( ?\(.*\))?: .+|Revert ".+")$'
19- excludeDescription : ' true' # optional: this excludes the description body of a pull request
20- excludeTitle : ' true' # optional: this excludes the title of a pull request
21- checkAllCommitMessages : ' true' # optional: this checks all commits associated with a pull request
18+ pattern : ' ^((docs|feat|fix|chore| refactor|style|test|sweep)( ?\(.*\))?: .+|Revert ".+")$'
19+ excludeDescription : " true" # optional: this excludes the description body of a pull request
20+ excludeTitle : " true" # optional: this excludes the title of a pull request
21+ checkAllCommitMessages : " true" # optional: this checks all commits associated with a pull request
2222 accessToken : ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
23- flags : ' gim'
23+ flags : " gim"
2424 error : ' Your commit has to follow the format "<type>(<scope>): <subject>"".'
2525 - name : Check Commit Length
2626 uses : gsactions/commit-message-checker@v2
2727 with :
28- pattern : ' ^.{20,150}$'
29- error : ' Commit messages should be between 20 and 150 chars'
30- excludeDescription : ' true' # optional: this excludes the description body of a pull request
31- excludeTitle : ' true' # optional: this excludes the title of a pull request
32- checkAllCommitMessages : ' true' # optional: this checks all commits associated with a pull request
28+ pattern : " ^.{20,150}$"
29+ error : " Commit messages should be between 20 and 150 chars"
30+ excludeDescription : " true" # optional: this excludes the description body of a pull request
31+ excludeTitle : " true" # optional: this excludes the title of a pull request
32+ checkAllCommitMessages : " true" # optional: this checks all commits associated with a pull request
3333 accessToken : ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
0 commit comments