跳到主要内容

git提交规范

Git 提交类型​

  • 更新版本号:chore: bump version to 2.6.2
  • 更新配置:chore: update eslint config
  • 更新文档:docs: update README usage
类型全称 / 含义什么时候用示例
featfeature,新功能新增功能、页面、接口、交互能力feat: add user login page
fixbug fix,修复问题修复 bug、异常、错误逻辑fix: fix login redirect error
docsdocumentation,文档修改 README、注释文档、接口文档等docs: update README usage
style代码格式调整不影响代码逻辑的格式修改,如空格、缩进、分号、换行style: format user service code
refactor重构代码结构调整,但不新增功能、不修复 bugrefactor: simplify auth logic
perfperformance,性能优化提升性能、减少内存、优化加载速度perf: optimize image lazy loading
test测试相关新增或修改测试用例test: add user login unit tests
chore杂项 / 构建外的日常维护改配置、依赖、脚本、工具、更新版本号、不影响业务逻辑chore: update eslint config
build构建相关修改构建系统、打包配置、依赖构建流程build: update vite config
ciCI/CD 相关修改 GitHub Actions、GitLab CI、Jenkins 等流水线配置ci: add release workflow
revert回滚提交回滚之前的 commitrevert: revert login page changes
release发布版本发布版本、打 tag、更新版本号release: v1.2.0