-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.01 KB
/
pr-title.yml
File metadata and controls
43 lines (40 loc) · 1.01 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
# PR Title Convention Check
#
# Ensures PR titles follow conventional commit format so that
# squash merges produce commits that semantic-release can analyze.
#
# Valid formats:
# feat: add new feature
# fix(scope): fix bug in scope
# docs: update documentation
# chore!: breaking change
name: PR Title Check
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
check-title:
runs-on: ubuntu-latest
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
requireScope: false
subjectPattern: ^.+$
subjectPatternError: |
The subject (after the type) cannot be empty.
Example: "feat: add user authentication"