-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip] Add commit length check workflow (#79)
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |