-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (43 loc) · 1.13 KB
/
pr-title.yml
File metadata and controls
45 lines (43 loc) · 1.13 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
name: PR Title Check
on:
pull_request:
branches: [main]
types: [opened, edited, synchronize, reopened]
jobs:
pr-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Skip validation for dependabot PRs (they use their own title format)
ignoreLabels: |
dependencies
# Configure which types are allowed
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Require lowercase subject
subjectPattern: ^[a-z].+$
subjectPatternError: |
The subject "{subject}" must start with a lowercase letter.
# Don't require a scope
requireScope: false
# Scopes that are allowed (if scope is provided)
scopes: |
cli
docker
squid
proxy
ci
deps