使用者工具

網站工具


guide:commit-message

**這是本文件的舊版!**

Commit Message Guide

格式

<type>(<scope>): <subject>
// 空一行
<body>
// 空一行
<footer>

type

提交类型,可选值如下:

  • work: 开发中 (work in progress)
  • feature: 新功能 (new feature)
  • fix: 修补 bug (fix bug)
  • doc: 文档 (documentation changes)
  • style: 格式 (change code format)
  • refactor: 重构 (modify code but not feature)
  • test: 增加测试 (test code)
  • chore: 构建过程或辅助工具的变动 (changes don't modify src and test files, only config or tasks)

scope

用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。

subject

commit 目的的简短描述。

body

对本次 commit 的详细描述

描述一些特殊情况,不兼容变动和 issue 关闭。

guide/commit-message.1656064436.txt.gz · 上一次變更: 2022/06/24 09:53 由 admin_wi1d5ky

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki