Skip to content

Commit

Permalink
[skip] Add commit length check workflow (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-czernek authored Mar 6, 2024
1 parent 32a0869 commit 3bb884a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Commit Message Length Check'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- 'MU/*'
- 'release/*'

jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check Line Length
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(\[skip\].*|.{1,65})$'
error: 'The maximum line length of 65 characters is exceeded.'
excludeDescription: 'true' # exclude the description body of a pull request
excludeTitle: 'true' # exclude the title of a pull request
checkAllCommitMessages: 'true' # check all commits associated with a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3bb884a

Please sign in to comment.