-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #867 from pjbgf/commit-checker
build: Add github workflow to check commit message format
- Loading branch information
Showing
1 changed file
with
30 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,30 @@ | ||
name: 'PR Validation' | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check-commit-message: | ||
name: Check Commit Messages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Package Prefix | ||
uses: gsactions/commit-message-checker@v2 | ||
with: | ||
pattern: '^(\*|plumbing|utils|config|_examples|internal|storage|cli|build): .+' | ||
error: | | ||
Commit message(s) does not align with contribution acceptance criteria. | ||
Refer to https://github.com/go-git/go-git/blob/master/CONTRIBUTING.md#format-of-the-commit-message for more information. | ||
excludeDescription: 'true' | ||
excludeTitle: 'true' | ||
checkAllCommitMessages: 'true' | ||
accessToken: ${{ secrets.GITHUB_TOKEN }} |