Loading...
Loading...
Compare original and translation side by side
<type>: <short description>| Type | When to use |
|---|---|
| New feature or contract |
| Bug fix |
| Code restructure without behavior change |
| Add or update tests |
| Documentation changes |
| Build config, dependency updates, toolchain |
| Security fix or hardening |
<type>: <short description>| Type | 适用场景 |
|---|---|
| 新功能或合约 |
| 漏洞修复 |
| 不改变原有行为的代码重构 |
| 新增或更新测试 |
| 文档变更 |
| 构建配置、依赖更新、工具链调整 |
| 安全修复或加固 |
git diffgit add ..envCo-Authored-Bygit pushgit diffgit add ..envCo-Authored-Bygit push| Pattern | Example |
|---|---|
| |
| |
| |
| 命名规则 | 示例 |
|---|---|
| |
| |
| |
| Section | Content |
|---|---|
| Change description | What was changed and why |
| Test results | |
| Gas impact | |
| Deployment impact | Does this affect deployed contracts? Migration needed? |
| Review focus | Specific areas that need careful review |
| 模块 | 内容 |
|---|---|
| 变更描述 | 修改的内容以及修改原因 |
| 测试结果 | |
| Gas影响 | 针对修改函数的 |
| 部署影响 | 是否影响已部署合约?是否需要执行迁移? |
| 审查重点 | 需要重点仔细审查的特定区域 |
| Scenario | Requirement |
|---|---|
| Standard changes | Minimum 1 maintainer approval |
| Security-related changes | Minimum 2 maintainer approvals |
| AI-generated code | Must pass manual review + |
| Contract upgrades | Requires full team review + upgrade simulation on fork |
| 场景 | 要求 |
|---|---|
| 常规变更 | 至少1名维护者审批通过 |
| 安全相关变更 | 至少2名维护者审批通过 |
| AI生成代码 | 合并前必须通过人工审查 + |
| 合约升级 | 需要全团队审查 + 分叉环境下的升级模拟验证 |
forge testforge fmtforge testforge fmt