-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (36 loc) · 934 Bytes
/
commitlint.yml
File metadata and controls
39 lines (36 loc) · 934 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
39
name: Commitlint
on:
pull_request:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
statuses: write
jobs:
validate-pr-title:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Check PR title follows Conventional Commits
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Allowed Conventional Commit types for this repo.
# Keep in sync with the types used in squash-merge commit messages.
types: |
feat
fix
docs
chore
ci
refactor
test
perf
build
style
revert
# Scope is optional; allow any scope string when present.
requireScope: false