-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 798 Bytes
/
Copy pathpr-title.yml
File metadata and controls
28 lines (28 loc) · 798 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
# Conventional Commits, enforced where it matters: every PR is squash-merged
# with its title as the commit subject, so the title is the commit message.
name: pr-title
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
pull-requests: read
jobs:
conventional:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
test
refactor
perf
chore
ci
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: The subject "{subject}" must start lowercase, like a Conventional Commit.