From fca99e7deb7f241b3eea085ca01a9b6e34bdcc85 Mon Sep 17 00:00:00 2001 From: Night-stars-1 Date: Wed, 10 Jul 2024 18:25:43 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0commit=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commit_templates.json | 114 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 commit_templates.json diff --git a/commit_templates.json b/commit_templates.json new file mode 100644 index 0000000..bf37313 --- /dev/null +++ b/commit_templates.json @@ -0,0 +1,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 + } + ] +}