Repository navigation
docs(skill): 让 resolve-pr 定位 PR 分支并处理冲突 - #342
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
resolve-pr在编辑前核对 PR head、当前分支和现有 worktree;已在目标分支时保持当前工作区,否则复用或创建目标分支的独立 worktree。resolve-merge-conflicts,完成冲突处理和验证后继续 PR 修复。Testing
git diff --check通过。resolve-pr与git-worktree、resolve-merge-conflicts的边界;本次仅修改技能说明,无自动化测试。Risk
后续执行
resolve-pr时会更早检查分支和工作区状态;遇到分叉、路径占用或 fork 无写入权限会在编辑前停止。How to revert
合并后执行
git revert 067f327,恢复此前的技能流程。