<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[Conventional Commits 常见规范]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[运维管理]]></category>
<pubDate>Mon, 18 May 2026 08:53:34 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	`git feat` 是指在 Git 提交（commit）信息中使用 `feat` 作为前缀，它是英文 “feature”（新功能）的缩写，用于标识本次提交新增了一个功能或特性。<br/><br/>这一用法源于 [Conventional Commits（约定式提交）](https://www.conventionalcommits.org/) 规范，该规范通过标准化提交信息格式，提升团队协作效率，并便于自动生成变更日志（changelog）和版本号管理。<br/><br/>---<br/><br/>常见提交类型前缀含义<br/><br/>- `feat`：新增功能（feature）&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`feat: 添加用户登录功能`<br/>- `fix`：修复 bug&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`fix: 修复登录超时问题`<br/>- `docs`：仅修改文档&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`docs: 更新 README 使用说明`<br/>- `style`：代码样式调整（不影响运行）&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`style: 格式化代码缩进`<br/>- `refactor`：代码重构（非新增功能、非修复 bug）&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`refactor: 提取用户验证逻辑为独立函数`<br/>- `chore`：构建过程或工具依赖更新&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`chore: 更新 npm 依赖包`<br/>- `test`：增加或修改测试&nbsp;&nbsp;<br/>&nbsp;&nbsp;示例：`test: 添加登录接口单元测试`<br/><br/>---<br/><br/>提交信息结构（Conventional Commits）<br/><br/>标准格式为：<br/><br/>```<br/><type>(<scope>): <subject><br/>[body]<br/>[footer]<br/>```<br/><br/>- `type`：必须，如 `feat`、`fix` 等&nbsp;&nbsp;<br/>- `scope`：可选，限定影响范围，如 `(auth)`、`(api)`&nbsp;&nbsp;<br/>- `subject`：简短描述（≤50 字符）&nbsp;&nbsp;<br/>- `body` / `footer`：可选，详细说明或关联 issue<br/><br/>示例完整写法：<br/><br/>```bash<br/>feat(auth): 添加 Google OAuth 登录支持<br/><br/>- 允许用户通过 Google 账号一键登录<br/>- 集成 OAuth2.0 流程<br/>- 关联 JIRA-123<br/>```<br/><br/>---<br/><br/>实践意义<br/><br/>- ✅ 提高可读性：团队成员快速理解提交目的&nbsp;&nbsp;<br/>- ✅ 支持自动化：工具（如 `semantic-release`）可依据 `feat` 自动升级版本号&nbsp;&nbsp;<br/>- ✅ 便于生成 changelog：按类型分类生成发布说明&nbsp;&nbsp;<br/><br/>更多规范细节可参考：[Conventional Commits 官方规范](https://www.conventionalcommits.org/)
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] Conventional Commits 常见规范]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>