-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcommit_templates.json
114 lines (114 loc) · 2.78 KB
/
commit_templates.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
113
114
{
"$schema": "https://bendera.github.io/vscode-commit-message-editor/schemas/config-v1.schema.json",
"configVersion": "1",
"staticTemplate": [
"feat: 简短描述",
"",
"消息正文",
"",
"消息页脚"
],
"dynamicTemplate": [
"{type}{scope}: {description}",
"",
"{body}",
"",
"{breaking_change}{footer}"
],
"tokens": [
{
"label": "类型",
"name": "type",
"type": "enum",
"options": [
{
"label": "---",
"value": ""
},
{
"label": "build",
"description": "影响构建系统或外部依赖的更改(示例范围:gulp, broccoli, npm)"
},
{
"label": "chore",
"description": "更新grunt任务等;没有生产代码变更"
},
{
"label": "ci",
"description": "对CI配置文件和脚本的更改(示例范围:Travis, Circle, BrowserStack, SauceLabs)"
},
{
"label": "docs",
"description": "仅文档更改"
},
{
"label": "feat",
"description": "新功能"
},
{
"label": "fix",
"description": "修复错误"
},
{
"label": "perf",
"description": "提高性能的代码更改"
},
{
"label": "refactor",
"description": "既不修复错误也不添加功能的代码更改"
},
{
"label": "revert"
},
{
"label": "style",
"description": "不影响代码含义的更改(空格、格式、缺少分号等)"
},
{
"label": "test",
"description": "添加缺失的测试或更正现有的测试"
}
],
"description": "更改类型"
},
{
"label": "范围",
"name": "scope",
"description": "一个范围可以为提交类型提供额外的上下文信息,并包含在括号内,例如,“feat(parser): 添加解析数组的功能”。",
"type": "text",
"multiline": false,
"prefix": "(",
"suffix": ")"
},
{
"label": "简短描述",
"name": "description",
"description": "主题行中的简短描述。",
"type": "text",
"multiline": false
},
{
"label": "正文",
"name": "body",
"description": "可选正文",
"type": "text",
"multiline": true,
"lines": 5,
"maxLines": 10
},
{
"label": "重大变更",
"name": "breaking_change",
"type": "boolean",
"value": "重大变更:",
"default": false
},
{
"label": "页脚",
"name": "footer",
"description": "可选页脚",
"type": "text",
"multiline": true
}
]
}