代码规范

git commit 代码提交规范

  1. commitizen
  • 格式, type(scope) : subject
  1. 设置 git commit 模板
  • ....
  1. 制定适合我们的 git commit 提交规范
  • 格式, type: description
  • type 是 commit 的类别,只允许如下几种标识:
    • fix: 修复bug

      fix:BUG#32533

    • add: 新功能
    • update: 更新
    • style : 代码格式改变
    • test: 增加测试代码
    • revert: 撤销上一次的commit
    • build: 构建工具或构建过程等的变动,如:gulp 换成了 webpack,webpack 升级等

Code Review最佳实践

 [blocker]
 [optional]
 [question]
posted @ 2021-07-09 10:10  WANGHAO229  阅读(30)  评论(0)    收藏  举报