You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will not overwrite any previous changelog. The above generates a changelog based on commits since the last semver tag that match the pattern of a "Feature", "Fix", "Performance Improvement" or "Breaking Changes".
日志操作相关命令
以下是在阮一峰基础上的扩展http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html
cz-customizable
分类别添加scope
配置默认有个example
运行git cz后会让你选择你配置的scopes
commitlint
在阮一峰的文档里面,validate-commit-msg 官网写着已经废弃,并指向了commitlint
安装步骤就不详细说了,具体见这里
这里引入了husky,在git commit -m "" 或者直接vscode提交,项目提交都进行hook,并抛出错误
思考
运用conventional-changelog官方都是推荐的angular的默认配置,也看过一些别的配置,由于配置项过多没有自己实现一个;后续可以根据项目需要自己去做一个相关的js配置。
比较不喜欢的一点就是angular的配置,只有fix,feature及其他2个可以生成在配置文件中,doc居然不行。
官方的说法是:
我测试了下还有个Reverts回退,是会记录在changelog上面的;
有一些项目中的merge,打包等,暂时没有选项,可以先写在不被记录的一些选项上,比如doc。
附,commit head:用途一览
review
缺陷修复等)The text was updated successfully, but these errors were encountered: