Skip to content

Commit

Permalink
chore: 添加commit模板
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-stars-1 committed Jul 10, 2024
1 parent c565a12 commit fca99e7
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions commit_templates.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}

0 comments on commit fca99e7

Please sign in to comment.