Skip to content

Instantly share code, notes, and snippets.

@staticfire
Forked from Zekfad/conventional-commits.md
Last active September 7, 2023 13:00
Show Gist options
  • Select an option

  • Save staticfire/1d126676e4ee2792da15a5f80be0c8e7 to your computer and use it in GitHub Desktop.

Select an option

Save staticfire/1d126676e4ee2792da15a5f80be0c8e7 to your computer and use it in GitHub Desktop.
Conventional Commits Cheatsheet

快速示例

  • feat: 新功能
  • fix(scope): 作用域内的错误
  • feat!: 重大变更 / feat(scope)!: 重新设计API
  • chore(deps): 更新依赖项

提交类型

  • build: 影响构建系统或外部依赖项的更改(示例范围:gulp、broccoli、npm)
  • ci: 更改CI配置文件和脚本(示例范围:Travis、Circle、BrowserStack、SauceLabs)
  • chore: 不更改源代码或测试的更改,例如更改构建过程、辅助工具、库
  • docs: 仅文档更改
  • feat: 新功能
  • fix: 修复错误
  • perf: 改进性能的代码更改
  • refactor: 既不修复错误也不添加功能的代码更改
  • revert: 撤销某些内容
  • style: 不影响代码含义的更改(空格、格式、缺少分号等)
  • test: 添加缺失的测试或更正现有测试

提醒事项

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment