-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
可以看这条commit是怎么写的,或者使用(p)npm run commit 来替代git commit ISSUES CLOSED: #12
- Loading branch information
master1lan
committed
Feb 17, 2023
1 parent
4dacd82
commit 77cc224
Showing
6 changed files
with
1,709 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ["gitmoji"], | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| module.exports = { | ||
| types: [ | ||
| { | ||
| value: ":zap: feat", | ||
| name: "⚡️ feat: 新功能", | ||
| }, | ||
| { | ||
| value: ":bug: fix", | ||
| name: "🐛 fix: 修复bug", | ||
| }, | ||
| { | ||
| value: ":pencil2: docs", | ||
| name: "✏️ docs: 文档变更", | ||
| }, | ||
| { | ||
| value: ":lipstick: style", | ||
| name: "💄 style: 代码的样式美化", | ||
| }, | ||
| { | ||
| value: ":building_construction: refactor", | ||
| name: "🏗️ refactor: 重构", | ||
| }, | ||
| { | ||
| value: ":wheelchair: perf", | ||
| name: "♿️ perf: 性能优化", | ||
| }, | ||
| { | ||
| value: ":monocle_face: test", | ||
| name: "🧐 test: 测试", | ||
| }, | ||
| { | ||
| value: ":technologist: chore", | ||
| name: "🧑💻 chore: 构建/工程依赖/工具", | ||
| }, | ||
| ], | ||
| messages: { | ||
| type: "请选择提交类型(必填)", | ||
| customScope: "请输入文件修改范围(可选)", | ||
| subject: "请简要描述提交(必填)", | ||
| body: "请输入详细描述(可选)", | ||
| breaking: "列出任何BREAKING CHANGES(可选)", | ||
| footer: "请输入要关闭的issue(可选)", | ||
| confirmCommit: "确定提交此说明吗?", | ||
| }, | ||
| allowCustomScopes: true, | ||
| allowBreakingChanges: ["feat", "fix"], // 当提交类型为feat、fix时才有破坏性修改选项 | ||
| subjectLimit: 72, | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
|
|
||
| npx --no-install commitlint --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.