Skip to content

Commit 4c08f57

Browse files
authored
Update commit-checker.yml
1 parent 2ed1a8e commit 4c08f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/commit-checker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ jobs:
3636
- name: Check Subject Line Length
3737
uses: gsactions/commit-message-checker@v1
3838
with:
39-
pattern: '^.{0,72}(\n.*)*$'
40-
error: 'Subject too long (max 75)'
39+
pattern: '^[^#].{50}'
40+
error: 'Subject too long (max 50)'
4141
excludeDescription: 'true'
4242
excludeTitle: 'false'
4343
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
4444
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
4545
- name: Check Line Length
4646
uses: gsactions/commit-message-checker@v1
4747
with:
48-
pattern: '^.+(\n.{0,72})*$'
48+
pattern: '^[^#].{72}'
4949
error: 'The maximum line length of 72 characters is exceeded.'
5050
excludeDescription: 'false' # optional: this excludes the description body of a pull request
5151
excludeTitle: 'true' # optional: this excludes the title of a pull request

0 commit comments

Comments
 (0)