Loading...
Loading...
Compare original and translation side by side
<type>: <concise description of what changed><类型>: <变更内容的简洁描述>| Prefix | Use When |
|---|---|
| Adding new functionality |
| Correcting a bug |
| Restructuring without behavior change |
| Documentation only |
| Adding or updating tests |
| Dependencies, tooling, config |
| Performance improvement |
| Formatting, whitespace, naming |
| CI/CD pipeline changes |
| Reverting a previous change |
| 前缀 | 使用场景 |
|---|---|
| 添加新功能 |
| 修复Bug |
| 重构代码(无行为变更) |
| 仅修改文档 |
| 添加或更新测试 |
| 依赖、工具、配置变更 |
| 性能优化 |
| 格式、空白字符、命名规范调整 |
| CI/CD流水线变更 |
| 回滚之前的变更 |
Bad: "Updates"
Good: "feat: add full-text search to user directory"
Bad: "Fix bug"
Good: "fix: prevent duplicate charge on payment retry"
Bad: "Refactoring the auth module and also fixing some tests and updating docs"
Good: "refactor: extract token validation into dedicated service"Bad: "Updates"
Good: "feat: add full-text search to user directory"
Bad: "Fix bug"
Good: "fix: prevent duplicate charge on payment retry"
Bad: "Refactoring the auth module and also fixing some tests and updating docs"
Good: "refactor: extract token validation into dedicated service"undefinedundefinedSearchService/api/users/searchSearchService/api/users/searchSearchServiceSearchServiceundefinedundefinedundefinedundefinedUserProfile.getAvatarUrl()UserProfile.getAvatarUrl()undefinedundefinedCloses #123
Fixes #456
Resolves #789Closes #123
Fixes #456
Resolves #789Closes org/other-repo#123Closes org/other-repo#123Related to #123
Part of #456
See also #789Related to #123
Part of #456
See also #789[WIP][Draft]undefined[WIP][Draft]undefined
3. Convert to ready-for-review only when all work is complete
4. Do not request specific reviewers on draft PRs unless you need targeted feedback
3. 仅当所有工作完成后,再转为待评审状态
4. 除非需要针对性反馈,否则不要为草稿PR指定特定评审者| Metric | Target | Maximum |
|---|---|---|
| Lines changed | 50-200 | 400 |
| Files changed | 1-8 | 15 |
| Commits | 1-5 | 10 |
| Review time | 15-30 min | 60 min |
| 指标 | 目标值 | 最大值 |
|---|---|---|
| 变更行数 | 50-200 | 400 |
| 变更文件数 | 1-8 | 15 |
| 提交次数 | 1-5 | 10 |
| 评审时间 | 15-30分钟 | 60分钟 |
src/services/src/services/PR #1: feat: add user search database schema
└── PR #2: feat: add search service with query logic
└── PR #3: feat: add search API endpoint and docsPR #1: feat: add user search database schema
└── PR #2: feat: add search service with query logic
└── PR #3: feat: add search API endpoint and docsundefinedundefined
3. Base each PR on the previous PR's branch, not on main:
```bash
3. 每个PR基于前一个PR的分支,而非主分支:
```bash
4. When an earlier PR is merged, rebase subsequent PRs onto main
5. Review and merge in order -- do not merge PR 3 before PR 1
4. 当早期PR合并后,将后续PR变基到主分支
5. 按顺序评审并合并——不要在PR 1合并前合并PR 3undefinedundefinedundefinedundefinedundefinedundefinedprocessDatavalidateAndStorePaymentundefinedprocessDatavalidateAndStorePaymentundefinedundefinedundefined/api/users/search/api/users/searchpageper_pagecursorlimitnext_cursorhas_moreUserRepository.search()(created_at, id)(created_at, id)pagepageper_pagecursorlimitnext_cursorhas_moreUserRepository.search()(created_at, id)(created_at, id)pagepagepage{created_at, id}page20240115_add_users_pagination_index.sqlundefined{created_at, id}page20240115_add_users_pagination_index.sqlundefined