Debian Codegraph @

.github/workflows/pr-validation.yml

raw
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: '^(\*|docs|git|plumbing|utils|config|_examples|internal|storage|cli|build|tests): .+'
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 }}