Loading...
Loading...
Compare original and translation side by side
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]<type>[可选 scope]: <描述>
[可选正文]
[可选页脚]| Type | Purpose | SemVer |
|---|---|---|
| New feature | MINOR |
| Bug fix | PATCH |
| Documentation only | - |
| Formatting, no code change | - |
| Code change, no feature/fix | - |
| Performance improvement | - |
| Adding/fixing tests | - |
| Build system, dependencies | - |
| CI configuration | - |
| Maintenance tasks | - |
| Revert previous commit | - |
| 类型 | 用途 | SemVer |
|---|---|---|
| 新增功能 | MINOR |
| 修复Bug | PATCH |
| 仅修改文档 | - |
| 代码格式调整,无代码逻辑变更 | - |
| 代码重构,无新增功能或Bug修复 | - |
| 性能优化 | - |
| 添加或修复测试用例 | - |
| 构建系统或依赖项修改 | - |
| CI配置修改 | - |
| 维护任务 | - |
| 回滚之前的提交 | - |
feat!: send email when product shipped
feat(api)!: change response format
chore!: drop support for Node 6
BREAKING CHANGE: use JavaScript features not available in Node 6.feat!: 产品发货时发送邮件
feat(api)!: 修改响应格式
chore!: 停止支持 Node 6
BREAKING CHANGE: 使用 Node 6 不支持的 JavaScript 特性。feat: add user authentication
fix: resolve memory leak in cache
docs: update API documentation
style: format code with prettier
refactor: extract validation logic
perf: optimize database queries
test: add unit tests for auth module
build: upgrade webpack to v5
ci: add GitHub Actions workflow
chore: update dependenciesfeat: 添加用户认证功能
fix: 修复缓存中的内存泄漏问题
docs: 更新API文档
style: 使用prettier格式化代码
refactor: 提取验证逻辑
perf: 优化数据库查询
test: 为认证模块添加单元测试
build: 将webpack升级到v5版本
ci: 添加GitHub Actions工作流
chore: 更新依赖项feat(auth): add OAuth2 support
fix(parser): handle empty arrays
docs(readme): add installation guide
refactor(api): simplify error handlingfeat(auth): 添加OAuth2支持
fix(parser): 处理空数组情况
docs(readme): 添加安装指南
refactor(api): 简化错误处理逻辑fix: prevent request racing
Introduce a request id and reference to latest request.
Dismiss incoming responses other than from latest request.
Remove timeouts which were used to mitigate the racing issue
but are obsolete now.fix: 防止请求竞态问题
引入请求ID并关联最新请求。
忽略非最新请求的响应。
移除之前用于缓解竞态问题的超时机制,该机制现已过时。fix: correct minor typos in code
Reviewed-by: John Doe
Refs: #123fix: 修正代码中的小拼写错误
Reviewed-by: John Doe
Refs: #123feat: allow config object to extend other configs
BREAKING CHANGE: `extends` key in config file is now used
for extending other config files.feat: 允许配置对象继承其他配置
BREAKING CHANGE: 配置文件中的`extends`键现在用于继承其他配置文件。chore!: drop support for Node 6
BREAKING CHANGE: use JavaScript features not available in Node 6.chore!: 停止支持Node 6
BREAKING CHANGE: 使用Node 6不支持的JavaScript特性。revert: let us never again speak of the noodle incident
Refs: 676104e, a215868revert: 让我们永远不再提及面条事件
Refs: 676104e, a215868featfixfeatfix!:BREAKING CHANGE:BREAKING CHANGE-Reviewed-byfeatfixfeatfix:!BREAKING CHANGE:BREAKING CHANGE-Reviewed-byfeat(parser):featfix!BREAKING CHANGE:feat(parser):featfix!BREAKING CHANGE:BREAKING CHANGEBREAKING-CHANGEBREAKING CHANGEBREAKING CHANGEBREAKING-CHANGEBREAKING CHANGE| Commit Type | SemVer Bump | Version Change |
|---|---|---|
| PATCH | 1.0.0 → 1.0.1 |
| MINOR | 1.0.0 → 1.1.0 |
| MAJOR | 1.0.0 → 2.0.0 |
fix!:| 提交类型 | SemVer 版本变更 | 版本示例 |
|---|---|---|
| PATCH | 1.0.0 → 1.0.1 |
| MINOR | 1.0.0 → 1.1.0 |
| MAJOR | 1.0.0 → 2.0.0 |
fix!:| Commit Type | Changelog Section |
|---|---|
| Added |
| Fixed |
| Changed |
| Changed |
| (usually omitted or Changed) |
| Highlight in Changed/Removed |
| Removed or Fixed |
| Security fixes | Security |
| 提交类型 | 变更日志章节 |
|---|---|
| 新增功能 |
| Bug修复 |
| 功能变更 |
| 功能变更 |
| (通常省略或归入功能变更) |
| 在功能变更/移除功能中高亮显示 |
| 移除功能或Bug修复 |
| 安全修复 | 安全更新 |
conventional-changelogsemantic-releaserelease-pleaseconventional-changelogsemantic-releaserelease-pleasegit commit -m "feat(users): add profile page"
git commit -m "feat(users): add avatar upload"
git commit -m "test(users): add profile page tests"
git commit -m "docs(users): document profile API"git commit -m "feat(users): 添加个人资料页面"
git commit -m "feat(users): 添加头像上传功能"
git commit -m "test(users): 添加个人资料页面测试"
git commit -m "docs(users): 编写个人资料API文档"git commit -m "fix(auth): resolve session timeout (#142)"git commit -m "fix(auth): 解决会话超时问题 (#142)"undefinedundefinedundefinedundefinedgit rebase -igit rebase -irevert: <original commit subject>
Refs: <commit SHA>revert: <原提交主题>
Refs: <提交SHA值>git config commit.template .gitmessagegit config commit.template .gitmessage| Tool | Purpose |
|---|---|
| commitlint | Lint commit messages |
| commitizen | Interactive commit helper |
| conventional-changelog | Generate changelogs |
| semantic-release | Automated releases |
| release-please | GitHub release automation |
| 工具链接 | 用途 |
|---|---|
| commitlint | 校验提交消息格式 |
| commitizen | 交互式提交消息辅助工具 |
| conventional-changelog | 生成变更日志 |
| semantic-release | 自动化版本发布 |
| release-please | GitHub版本发布自动化工具 |
git statusgit diff --name-onlygit diffgit statusgit diff --name-onlygit diffundefinedundefinedundefinedundefinedgit diffgit diff