feat(source-control): resolve merge conflicts and complete merges from the phone (#36160)

* feat(source-control): resolve conflicts with one host operation shared by desktop and mobile

* feat(mobile): resolve merge conflicts and complete merges from Source Control

* test(mobile): pin Complete merge refusals and the older-desktop message

* fix(source-control): only resolve paths Git still reports as conflicted

* fix(source-control): refuse to keep a missing file and serialize conflict resolution per worktree

* fix(source-control): resolve only the exact conflicted path

* fix(source-control): match conflicted paths in Git's separator form on Windows and WSL

* fix(source-control): accept only the resolutions the live conflict offers

* fix(source-control): refuse to keep a both-modified file that is gone from disk

* feat(mobile): translate the merge conflict actions

* test(runtime): keep the mobile allowlist test under its line cap

* fix(mobile): let VoiceOver reach conflict action buttons
This commit is contained in:
Kelvin Amoaba
2026-10-30 03:18:48 +00:00
committed by GitHub
parent 7679916342
commit dc99281085
40 changed files with 689 additions and 63 deletions
@@ -31,6 +31,7 @@ type RuntimeGitCommandName =
| 'generateRuntimePullRequestFields'
| 'cancelRuntimeGeneratePullRequestFields'
| 'stageRuntimeGitPath'
| 'resolveRuntimeGitConflict'
| 'unstageRuntimeGitPath'
| 'bulkStageRuntimeGitPaths'
| 'bulkUnstageRuntimeGitPaths'
@@ -77,6 +78,7 @@ export function installRuntimeGitCommandSurface(
cancelRuntimeGeneratePullRequestFields:
commands.cancelRuntimeGeneratePullRequestFields.bind(commands),
stageRuntimeGitPath: commands.stageRuntimeGitPath.bind(commands),
resolveRuntimeGitConflict: commands.resolveRuntimeGitConflict.bind(commands),
unstageRuntimeGitPath: commands.unstageRuntimeGitPath.bind(commands),
bulkStageRuntimeGitPaths: commands.bulkStageRuntimeGitPaths.bind(commands),
bulkUnstageRuntimeGitPaths: commands.bulkUnstageRuntimeGitPaths.bind(commands),