前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Commit Message Spec

Commit Message Spec

作者头像
Cell
发布2023-03-08 21:37:50
1.1K0
发布2023-03-08 21:37:50
举报
文章被收录于专栏:Cell的前端专栏Cell的前端专栏

Commit messages are short descriptions of changes to a repository. We should follow certain standards to effectively describe changes, such as the most used Angular Commit specification on GitHub, or each development team can simplify and formulate their own submission specifications, which is not only conducive to the automatic generation of Changelog in the later stage, but more importantly, when it appears When there is a bug, the entire warehouse can be quickly checked, the problem point can be accurately located, and the version can be returned.

Format

[{emoji} ]{type}[({module})]: {subject within 50 words}[ (#{issue/pull request})]

example:

  • 🎉 Feat: add shortcode fixit-encryptor shortcode (#123)
  • ⬆️ Chore(libs): update Artalk from 2.2.12 to 2.3.4 (#150)

Emoji

Message

Emoji

Type

Example

Description (No Ambiguous)

🎉✨

Feat

Feat: add {feature}

new feature

🚚

Feat: adjust/migrate {feature name}, {change details}

For the adjustment feature, it is necessary to describe the current situation (before) and after adjustment (after)

🔥

Feat: delete {feature name}, {deletion reason}

If the feature is deleted, the reason for deletion must be explained

🐛🚧🚨

Fix

Fix: fix {bug description}

Fix known bugs

🎨💄✏️

Style

Style: Typesetting/CSS style {optimizing content}

Changes that do not affect code operation, such as code layout and style change

♻️

Refactor

Refactor: override {feature name}

It is neither a new function nor a code change to fix a bug. Simply rewriting the code of a function does not affect the function result

Perf

Perf: improve performance {function name}, {improve content}

Optimize code performance

Revert

Revert: restore version {commit message of restore version}

Restore the version of one commit

✏✏️

Docs

Docs: revise comments/update documents

Adjustment of documents and notes

🔧

Chore

Chore: update plugin version

Changes in the construction process or auxiliary tools

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-08-12,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Format
  • Emoji
  • Message
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档