-
-
Notifications
You must be signed in to change notification settings - Fork 2k
39 lines (37 loc) · 1.08 KB
/
Copy pathpr-title-checker.yml
File metadata and controls
39 lines (37 loc) · 1.08 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
name: "Lint PR Title"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Types allowed (Standard Conventional Commits)
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# If the PR only contains one commit, it's often useful to check if that commit
# message also follows the convention.
checkLatestCommitMessage: false
# You can also add a regex to validate the subject line (the part after the colon)
# Flame enforces that it starts with a capital letter. We can do the same if you like.
subjectPattern: ^[^a-z].+$
subjectPatternError: |
The subject of the PR can't begin with a lowercase letter.