-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (35 loc) · 997 Bytes
/
Copy pathpr-title.yml
File metadata and controls
38 lines (35 loc) · 997 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
34
35
36
37
38
name: PR title
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
pull-requests: read
jobs:
conventional-commit:
name: Conventional Commits
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Allowed types — keep in sync with the commit-message style used
# in `git log` on main (feat, fix, chore, refactor, scan, perf, …).
types: |
feat
fix
chore
refactor
perf
docs
test
ci
build
revert
scan
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" must start with a lowercase letter.
Example: "feat(backend): add foo" not "feat(backend): Add foo".