-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 1002 Bytes
/
lint-pr-title.yml
File metadata and controls
38 lines (34 loc) · 1002 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: Lint PR title
# Rejects PR titles that don't follow Conventional Commits format. The
# title is what release-please reads (under squash-merge) to compute the
# next version bump, so a wrong/missing prefix would silently miss a
# release. This check turns that silent failure into a visible block.
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
chore
refactor
test
build
ci
perf
style
revert
requireScope: false
# Subject can be lowercase (matches existing repo convention).
# No regex constraint on subject content.
validateSingleCommit: false