类型(作用域/子作用域): 提交的超简短说明
| ✅ 示例(最多 50 个字符) |
|---|
| fix(DB/SAI): Missing spell to NPC Hogger |
| fix(Scripts/Raid): Phase 2 of Ragnaros |
| feat(Core/Players): Implement missing player flags |
注意不要留下格式错误的提交信息(例如随机的空格)
解释为什么要做此更改,以及修复了什么。
| ✅ 示例(每行最多 72 个字符) |
|---|
| Hogger (id: 492) was not charging player when being engaged. |
如果还有其他作者,可以这样提及他们:
Co-authored-by: Name [[email protected]](mailto:[email protected])
如果你在挑选(cherry-pick)提交,必须在你的提交中注明原作者。
当你创建提交时(使用 GIT Bash 终端),请键入:
git commit --author="John Doe <[email protected]>" -m "Your commit message"
✔️ 这会将提交中的 Author 字段设置为 John Doe [email protected] ✔️ 你常规 Git 配置的 user.name 和 user.email 仍将用于 Committer 字段。
如果你使用 GitHub Desktop,可以在提交描述框下方填写共同作者字段。
请记住:
- 开头的多行项目符号更多信息: Conventional Commits
作用域定义了受影响的主要领域:
遵循文件名或内容类型:
fix(Scripts/Ulduar): Mimiron rocket barrage targeting
fix(DB/SAI): Add missing spells to Howling Prowler
👉 对于 SQL 提交: 如果内容混合,请选择最主要的表类型。 示例:如果大多数编辑都在 smart_scripts 中,请使用 SAI。 如果更改过于分散,请使用像 Misc 这样的一般性子作用域。
例如:
fix(Scripts/Ulduar): Mimiron rocket barrage targeting
或者
fix(DB/SAI): Add missing spells to Howling Prowler