Commit 信息规范¶
我们尽最大的努力遵守conventional commits规范。
TL;DR:提交信息应当结构如下:
其中的"type"可以是以下内容:
feat: 实现了一个功能,如例1fix: 修复一个错误BREAKING CHANGE: 一项重大更改。或者在feat或fix的结尾处添加!,像feat!和fix!,如例2和例4- 其他类型同样被允许,例如:
build,chore,ci,docs,style,refactor,perf,test
"body"和"footer"都是可选项;重大改变既可以写在标题里,如例5;又可以写在脚注里,如例6。举例如下:
feat: send an email to the customer when a product is shippedfeat!: send an email to the customer when a product is shippedfeat(api): send an email to the customer when a product is shippedfeat(api)!: send an email to the customer when a product is shippedBREAKING CHANGE: send an email to the customer when a product is shippedfeat!: send an email to the customer when a product is shipped A detailed description in the body. BREAKING CHANGE: readdressing the breaking change in the footer.