Skip to content

Commit e1bdfd8

Browse files
authored
✨ feat(commitTemplate): 插件新增提交模板配置 (#47)
* ✨ feat(commitTemplate): 插件新增提交模板配置 config.json 文件新增提交模板格式配置功能 * doc(*): changelog & version * 🎈 perf(commitTemplate): 增加配置增加icon标签 增加icon标签,可以依据配置文件生成在对应的位置 * changelog * change readme * change readme * 🐞 fix: commitContent commit内容会多出换行的bug 解决在没有 body 或者 footer 的情况加会多出换行的bug * docs(igtignore): 📃 change gitignore Co-authored-by: odinsam <>
1 parent 3172b0f commit e1bdfd8

9 files changed

Lines changed: 563 additions & 86 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
package-lock.json
55
.vsix
66
.DS_Store
7+
git-commit-plugin-*.vsix

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@
77
"out": true // set this to false to include "out" folder in search results
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off"
10+
"typescript.tsc.autoDetect": "off",
11+
"cSpell.words": [
12+
"commit",
13+
"costom",
14+
"type"
15+
]
1116
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to the "git-int-commit-plugin" extension will be documented
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [1.0.6]
8+
- 🎈 perf(commitTemplate): 增加配置增加icon标签,可以自定义图标显示的位置
9+
- 🐞 fix(commitContent): 解决在没有body或者footer的情况下会多出换行的bug
10+
11+
## [1.0.5]
12+
- ✨ feat(commitTemplate): 插件新增提交模板配置
713

814
## [1.0.4]
915
- 🌈Style:[change icons](https://github.com/RedJue/git-commit-plugin/commit/611ecfb6c2cbf14436141056cc87da4530117c66)

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@ A detailed explanation can be found in this [document](https://docs.google.com/d
9999
"GitCommitPlugin.MaxSubjectWords": 20
100100
```
101101

102+
103+
- `GitCommitPlugin.Template`: customize the git commit template.
104+
105+
```json
106+
"GitCommitPlugin.Templates": [
107+
{
108+
"templateName": "Angular",
109+
"templateContent": "<icon><space><type>(<scope>):<space><subject><enter><body><enter><footer>"
110+
},
111+
{
112+
"templateName": "git-cz",
113+
"templateContent": "<type>(<scope>):<space><icon><space><subject><enter><body><enter><footer>"
114+
}
115+
]
116+
```
117+
102118
## license
103119

104120
### MIT
121+
122+
123+
124+

0 commit comments

Comments
 (0)