-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.04 KB
/
pr-lint.yml
File metadata and controls
46 lines (42 loc) · 1.04 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: PR Lint
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
pull-requests: read
jobs:
pr-title:
name: PR title (Conventional Commits)
runs-on: ubuntu-latest
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
chore
ci
docs
feat
fix
perf
refactor
revert
style
test
requireScope: false
subjectPattern: ^[a-z].+[^.]$
subjectPatternError: |
Subject "{subject}" must start with a lowercase letter and must not
end with a period.
Example: "feat(cli): add init subcommand"
commits:
name: Commit messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6