Skip to content

Commit 224b96f

Browse files
authored
Update commit-checker.yml
1 parent 3650691 commit 224b96f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/commit-checker.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,9 @@ jobs:
3636
- name: Check Subject Line Length
3737
uses: gsactions/commit-message-checker@v1
3838
with:
39-
pattern: '(^.*.{60})(\n.*)'
39+
pattern: '^(.{60}[^ ]*).\n*'
4040
error: 'Subject too long (max 60)'
4141
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
42-
- name: Check Line Length
43-
uses: gsactions/commit-message-checker@v1
44-
with:
45-
pattern: '^[^#].{72}'
46-
error: 'The maximum line length of 72 characters is exceeded.'
47-
excludeDescription: 'false' # optional: this excludes the description body of a pull request
48-
excludeTitle: 'true' # optional: this excludes the title of a pull request
49-
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
50-
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
5142
- name: Check for Resolves / Fixes
5243
uses: gsactions/commit-message-checker@v1
5344
with:

0 commit comments

Comments
 (0)