-
Notifications
You must be signed in to change notification settings - Fork 923
32 lines (27 loc) · 933 Bytes
/
pr-validation.yml
File metadata and controls
32 lines (27 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: PR Validation
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
permissions: {}
jobs:
check-commit-message:
name: Check Commit Messages
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check Package Prefix
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee # v2.0.0
with:
pattern: '^(\*|docs|rfcs|git|plumbing|utils|config|_examples|internal|storage|cli|build|backend|x): .+'
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 }}