-
Notifications
You must be signed in to change notification settings - Fork 2
[Git] 工作流助手:分支、提交、PR、review comment 和冲突辅助 #27
Copy link
Copy link
Open
Labels
area/dx开发者体验开发者体验area/gitGit, branch, commit, PR, and review workflowsGit, branch, commit, PR, and review workflowsdependency/blockedShould wait for one or more dependency issuesShould wait for one or more dependency issuesdepends-on/diff-patchDepends on #23 diff/patch workflowDepends on #23 diff/patch workflowdepends-on/securityDepends on #28 security/secret scanningDepends on #28 security/secret scanningdepends-on/verificationDepends on #26 verification strategyDepends on #26 verification strategypriority/P1本季度强烈建议本季度强烈建议type/feature功能需求功能需求
Metadata
Metadata
Assignees
Labels
area/dx开发者体验开发者体验area/gitGit, branch, commit, PR, and review workflowsGit, branch, commit, PR, and review workflowsdependency/blockedShould wait for one or more dependency issuesShould wait for one or more dependency issuesdepends-on/diff-patchDepends on #23 diff/patch workflowDepends on #23 diff/patch workflowdepends-on/securityDepends on #28 security/secret scanningDepends on #28 security/secret scanningdepends-on/verificationDepends on #26 verification strategyDepends on #26 verification strategypriority/P1本季度强烈建议本季度强烈建议type/feature功能需求功能需求
背景
当前能力:
痛点:
需要补齐:
目标
实现 Git 工作流助手:安全辅助创建/切换分支、选择性 stage、生成提交、创建 PR、处理 review comments 和解决冲突,同时保护用户未提交改动并提供清晰验证报告。
用户故事
详细需求
1. 分支管理
codex/前缀分支,除非用户指定其他名称。git reset --hard或git checkout --等破坏性命令,除非用户明确批准。2. Stage 与提交
3. PR 创建与更新
4. Review comment 处理
gh-address-comments技能保持兼容。5. 冲突辅助
输出样例
验收标准
codex/前缀,并在 dirty worktree 时给出保护提示。测试方案
tests/unit/git-workflow.test.ts:覆盖分支命名、dirty worktree 检测、stage 计划、PR body 生成。tests/integration/git-flow.test.ts:在临时 git repo 中覆盖分支、stage、commit dry-run、冲突状态。不在本期范围
依赖 / 风险
工作量评估