contributing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContributing Conventions
贡献规范
PR Title Format
PR标题格式
PR titles must follow the Conventional Commits spec. This is enforced by the CI check.
semantic-pull-request<type>[optional scope]: <description>Allowed types:
| Type | When to use |
|---|---|
| New feature |
| Bug fix |
| CI/CD changes |
| Documentation only |
| Code restructuring without behaviour change |
| Adding or fixing tests |
| Maintenance (deps, configs, tooling) |
| Performance improvement |
| Build system changes |
| Reverts a previous commit |
Do:
ci: retry apt-get installs to handle mirror sync failures
feat(grpo): add dataclass config defaults infrastructure
fix: preserve RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICESDon't:
[ci] fix: retry apt-get installs ← area tags are not part of this convention
Update stuff
Fix bugPR标题必须遵循Conventional Commits规范,这由 CI检查强制实施。
semantic-pull-request<type>[optional scope]: <description>允许的类型:
| 类型 | 使用场景 |
|---|---|
| 新增功能 |
| 修复Bug |
| CI/CD变更 |
| 仅文档更新 |
| 代码重构(不改变功能) |
| 添加或修复测试用例 |
| 维护工作(依赖、配置、工具) |
| 性能优化 |
| 构建系统变更 |
| 回退之前的提交 |
正确示例:
ci: retry apt-get installs to handle mirror sync failures
feat(grpo): add dataclass config defaults infrastructure
fix: preserve RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES错误示例:
[ci] fix: retry apt-get installs ← 区域标签不属于此规范
Update stuff
Fix bugCommit Sign-off
提交签名
All commits must be signed off with :
-sbash
git commit -s -m "fix: correct reward normalization"所有提交必须使用参数进行签名:
-sbash
git commit -s -m "fix: correct reward normalization"CI Triggering
CI触发
After pushing, trigger CI with:
/ok to test <full-commit-sha>Use (not the short form) to get the full SHA.
git rev-parse HEAD推送代码后,使用以下命令触发CI:
/ok to test <full-commit-sha>使用(而非短格式)获取完整SHA值。
git rev-parse HEAD