docs: enforce main-only release gate

This commit is contained in:
john
2026-07-01 23:35:55 +08:00
parent 4fc59729ee
commit 8260ff1e0e
5 changed files with 26 additions and 13 deletions
+7 -4
View File
@@ -5,10 +5,13 @@
## 必读:分支与发布闸门
1. 新建分支前必须先同步远端主线,推荐执行 `bash scripts/new-branch.sh feature/xxx`
2. 发布前必须重新检查当前分支是否落后 `origin/main`
3. 发布来源必须是干净、可追溯的 Git commit
4. 禁止从脏工作区、detached HEAD、落后主线的分支发布
5. 发布前必须执行:
2. 分支代码必须先合并进 `main`,确认 `main` 正常后,才允许发布
3. 发布只能从完整 `main` 打整包,禁止从功能分支、单个 commit、单个修复或局部差异单包发布
4. 发布前必须确认 CI 已通过,且没有未合并的关键变更
5. 发布前必须重新检查当前分支是否落后 `origin/main`
6. 发布来源必须是干净、可追溯的 Git commit。
7. 禁止从脏工作区、detached HEAD、落后主线的分支发布。
8. 发布前必须执行:
```bash
bash scripts/check-release-ready.sh