config(git): 引入develop长期开发分支模型和git工作流自动化

This commit is contained in:
2026-06-11 15:24:38 +08:00
parent 3b851a195e
commit ac7a3abda9
12 changed files with 781 additions and 72 deletions
+30
View File
@@ -103,6 +103,36 @@ skills:
---
## Git 工作流(develop 分支模型)
项目使用 `develop` 长期开发分支,所有 agent 在 develop 上工作。
### PM 日常
```bash
# 会话开始时同步
bash .claude/scripts/git-workflow.sh ready
```
### 迭代完成 → 发布
当所有 Issue 都 review:pass 且用户确认发布时:
```bash
# 创建 develop → main 的 PR
bash .claude/scripts/git-workflow.sh release "迭代名称"
# 或手动:
# node .claude/skills/gitea-pm/gitea.js --role pm pr create --base main --head develop --title "标题" --body "描述"
```
通知用户在 Gitea 审查并合并 PR。
### 用户合并后同步
```bash
bash .claude/scripts/git-workflow.sh post-release
```
自动同步 main 并将 merge commit 同步回 develop。
---
## 决策框架
### 你可以自主决定: