-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.23 KB
/
Copy pathconventional-commits.yml
File metadata and controls
52 lines (49 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
name: Conventional Commits
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
pull-requests: read
jobs:
validate:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- name: Check PR title follows conventional commits
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure allowed types
types: |
feat
fix
docs
chore
test
refactor
style
perf
build
ci
revert
# Require scope to be lowercase
requireScope: false
# Allow scopes (optional)
scopes: |
temporal
api
core
frontend
deps
cli
sdk
notebook
ee
docs
infra
# Ensure the subject doesn't start with uppercase
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" should not start with an uppercase letter.
Please use lowercase (e.g., "add feature" not "Add feature").