-
-
Notifications
You must be signed in to change notification settings - Fork 30
63 lines (61 loc) · 1.62 KB
/
semantic-pr.yml
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
53
54
55
56
57
58
59
60
61
62
63
name: "Semantic PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
types: |
feat
fix
perf
refactor
style
docs
test
build
ci
chore
part
scopes: |
functional-parameters
immutable-data
no-classes
no-class-inheritance
no-conditional-statements
no-expression-statements
no-let
no-loop-statements
no-mixed-types
no-promise-reject
no-return-void
no-this-expressions
no-throw-statements
no-try-statements
prefer-immutable-types
prefer-property-signatures
prefer-readonly-types
prefer-tacit
readonly-type
type-declaration-immutability
deps
dev-deps
peer-deps
release-patch
release-minor
release-major
requireScope: false
subjectPattern: ^(?![A-Z]).+$ # Don't start with an uppercase character.
subjectPatternError: |
The subject "{subject}" should not start with an uppercase character.
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?!?: (.*)$'
headerPatternCorrespondence: type, scope, subject