Skip to content

Commit e61537e

Browse files
authored
Merge pull request #867 from pjbgf/commit-checker
build: Add github workflow to check commit message format
2 parents 771a3eb + 1a73661 commit e61537e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/pr-validation.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'PR Validation'
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
check-commit-message:
16+
name: Check Commit Messages
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check Package Prefix
20+
uses: gsactions/commit-message-checker@v2
21+
with:
22+
pattern: '^(\*|plumbing|utils|config|_examples|internal|storage|cli|build): .+'
23+
error: |
24+
Commit message(s) does not align with contribution acceptance criteria.
25+
26+
Refer to https://github.com/go-git/go-git/blob/master/CONTRIBUTING.md#format-of-the-commit-message for more information.
27+
excludeDescription: 'true'
28+
excludeTitle: 'true'
29+
checkAllCommitMessages: 'true'
30+
accessToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)