This repository was archived by the owner on Jan 30, 2026. It is now read-only.
generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.commitlintrc.yml
More file actions
80 lines (67 loc) · 1.73 KB
/
.commitlintrc.yml
File metadata and controls
80 lines (67 loc) · 1.73 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Commitlint configuration for conventional commits
# Based on: https://www.conventionalcommits.org/
extends:
- '@commitlint/config-conventional'
rules:
# Type enum - allowed commit types
type-enum:
- 2 # Level: error
- always
- # Allowed types:
- feat # New feature
- fix # Bug fix
- docs # Documentation only changes
- style # Code style changes (formatting, missing semi-colons, etc)
- refactor # Code refactoring (neither fixes a bug nor adds a feature)
- perf # Performance improvements
- test # Adding or updating tests
- build # Changes to build system or dependencies
- ci # CI/CD configuration changes
- chore # Other changes that don't modify src or test files
- revert # Revert a previous commit
# Type case should be lowercase
type-case:
- 2
- always
- lower-case
# Type must not be empty
type-empty:
- 2
- never
# Scope case should be lowercase
scope-case:
- 2
- always
- lower-case
# Subject must not be empty
subject-empty:
- 2
- never
# Subject must not end with a period
subject-full-stop:
- 2
- never
- '.'
# Disable subject-case to allow uppercase abbreviations (PR, API, CLI, etc.)
subject-case:
- 0
# Header (first line) max length
header-max-length:
- 2
- always
- 72
# Body should have a blank line before it
body-leading-blank:
- 1 # Warning level
- always
# Footer should have a blank line before it
footer-leading-blank:
- 1 # Warning level
- always
# Body max line length
body-max-line-length:
- 1 # Warning level
- always
- 100
# Help URL shown in error messages
helpUrl: 'https://www.conventionalcommits.org/'