forked from szmxx/template-landing-page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.commitlintrc.json
112 lines (112 loc) · 3.06 KB
/
.commitlintrc.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-empty": [2, "never"],
"subject-empty": [2, "never"],
"scope-empty": [0],
"scope-enum": [2, "always", ["core", "style", "docs", "test", "server"]]
},
"prompt": {
"settings": {
"enableMultipleScopes": true,
"scopeEnumSeparator": ","
},
"messages": {
"skip": "跳过",
"max": "最大 %d 字符",
"min": "至少 %d 字符",
"emptyWarning": "不能为空",
"upperLimitWarning": "超过限制",
"lowerLimitWarning": "低于限制"
},
"questions": {
"type": {
"description": "提交类型",
"enum": {
"feat": {
"description": "新功能",
"title": "Features",
"emoji": "✨"
},
"fix": {
"description": "bug修复",
"title": "Bug Fixes",
"emoji": "🐛"
},
"docs": {
"description": "文档变更",
"title": "Documentation",
"emoji": "📚"
},
"style": {
"description": "样式更新",
"title": "Styles",
"emoji": "💎"
},
"refactor": {
"description": "代码重构",
"title": "Code Refactoring",
"emoji": "📦"
},
"perf": {
"description": "性能优化",
"title": "Performance Improvements",
"emoji": "🚀"
},
"test": {
"description": "测试变更",
"title": "Tests",
"emoji": "🚨"
},
"build": {
"description": "构建相关",
"title": "Builds",
"emoji": "🛠"
},
"ci": {
"description": "持续集成",
"title": "Continuous Integrations",
"emoji": "⚙️"
},
"chore": {
"description": "其他变更",
"title": "Chores",
"emoji": "♻️"
},
"revert": {
"description": "撤销提交",
"title": "Reverts",
"emoji": "🗑"
}
}
},
"scope": {
"description": "作用域"
},
"subject": {
"description": "描述"
},
"body": {
"description": "提供更长的描述"
},
"isBreaking": {
"description": "是否破坏性变更?"
},
"breakingBody": {
"description": "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself"
},
"breaking": {
"description": "Describe the breaking changes"
},
"isIssueAffected": {
"description": "Does this change affect any open issues?"
},
"issuesBody": {
"description": "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself"
},
"issues": {
"description": "Add issue references (e.g. \"fix #123\", \"re #123\".)"
}
}
}
}