-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 826 Bytes
/
pr-title.yml
File metadata and controls
33 lines (31 loc) · 826 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
33
name: PR Title Check
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Require conventional commit format: type(scope): description
# Types allowed (default set)
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Scope is optional
requireScope: false
# Subject (description) requirements
subjectPattern: ^.+$
subjectPatternError: "PR title must have a description after the type"