02afe37412
- 添加 gitea-config.json 可配置文件 - 添加 gitea-rules-generator.js 规则生成器 - 添加 gitea-orchestration.js 协作工作流 - 所有配置可动态生成,不再写死 - 支持 Issue → PR → Review → Fix → Merge 完整流程 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
75 lines
1.7 KiB
JSON
75 lines
1.7 KiB
JSON
{
|
|
"gitea": {
|
|
"baseUrl": "http://192.168.2.154:3000",
|
|
"owner": "sanguo",
|
|
"repo": "sanguo_moziplus_v3",
|
|
"defaultBranch": "main"
|
|
},
|
|
"rules": {
|
|
"branchNaming": {
|
|
"feature": "feature/{task-name}",
|
|
"fix": "fix/{issue-number}-{description}",
|
|
"hotfix": "hotfix/{description}"
|
|
},
|
|
"commitNaming": {
|
|
"feature": "feat: {description}",
|
|
"fix": "fix: {description}",
|
|
"refactor": "refactor: {description}",
|
|
"docs": "docs: {description}",
|
|
"test": "test: {description}"
|
|
},
|
|
"prTemplate": {
|
|
"title": "{task-type}: {description}",
|
|
"description": "## 任务\n\n{task-description}\n\n## 技术方案\n\n{approach}\n\n## 实现内容\n\n{changes}\n\n## 测试\n\n{tests}"
|
|
}
|
|
},
|
|
"review": {
|
|
"checklist": [
|
|
"代码质量",
|
|
"安全性",
|
|
"性能",
|
|
"测试覆盖",
|
|
"文档完整性"
|
|
],
|
|
"approval": "至少 2 个 Reviewer 通过"
|
|
},
|
|
"agents": {
|
|
"main": {
|
|
"role": "编排者",
|
|
"responsibilities": [
|
|
"分析任务",
|
|
"安排 Sub Agents",
|
|
"验收整合",
|
|
"合并 PR"
|
|
]
|
|
},
|
|
"execute": {
|
|
"role": "执行者",
|
|
"responsibilities": [
|
|
"实现功能",
|
|
"编写测试",
|
|
"创建 PR"
|
|
],
|
|
"skills": ["backend-dev", "frontend-dev"]
|
|
},
|
|
"review": {
|
|
"role": "审查者",
|
|
"responsibilities": [
|
|
"代码审查",
|
|
"添加 Review 评论",
|
|
"提供修改建议"
|
|
],
|
|
"skills": ["CODE-REVIEW", "security-reviewer"]
|
|
},
|
|
"test": {
|
|
"role": "测试者",
|
|
"responsibilities": [
|
|
"编写测试",
|
|
"执行测试",
|
|
"验证修复"
|
|
],
|
|
"skills": ["test-engineer", "e2e-tester"]
|
|
}
|
|
}
|
|
}
|