dh-scm
v1.1.3
Published
供应链管理
Downloads
8
Readme
dh-scm-frontend
供应链管理
Git提交规范
格式示例:(一般scope可不写)
<type>(<scope>): <subject>
type
用于说明本次提交的类别,必须是以下可选类别中的一个:
ci
: ci配置文件和脚本的变动;chore
: 构建系统或辅助工具的变动;polish
: 代码或者功能模块的改进和完善;fix
: 代码BUG修复;feat
: 新功能;perf
: 性能优化和提升;refactor
: 仅仅是代码变动,既不是修复BUG也不是引入新功能;style
: 代码格式调整,可能是空格、分号、缩进等等;docs
: 文档变动;test
: 补充缺失的测试用例或者修正现有的测试用例;revert
: 回滚操作;
scope
影响范围不是必须填写的,其内容可以是任何一个明确的变动地方,比如说某个特定的代码目录或者npm包名等等。
subject
本次提交目的的简短描述,请尽量概要描述,控制内容的长度:
- 以动词开头,使用第一人称现在时,比如change,而不是changed或changes;
- 第一个字母小写;
- 结尾不加句号(.);
注意
revert
如果本次提交是一次回滚操作,那么必须以revert:
开头,接下来的内容是要回滚的commit的header的内容,body
部分的格式是This reverts commit <hash>.
,具体的示例如下:
revert: feat(pencil): add 'graphiteWidth' option
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.