Refactor AutoMerge.Standalone to reuse shared AutoMerge changeset and branch pipelines#6
Draft
Copilot wants to merge 14 commits into
Draft
Refactor AutoMerge.Standalone to reuse shared AutoMerge changeset and branch pipelines#6Copilot wants to merge 14 commits into
Copilot wants to merge 14 commits into
Conversation
Open
…or-standalone-code Co-authored-by: vbtrek <26403480+vbtrek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/vbtrek/AutoMerge/sessions/28fec95b-b005-40e3-911f-592e0af8b8d5 Co-authored-by: vbtrek <26403480+vbtrek@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor standalone project to reuse AutoMerge code
Refactor AutoMerge.Standalone to reuse shared AutoMerge changeset pipeline
May 8, 2026
Owner
|
@copilot This is quite a good first attempt, in UpdateBranchesView() in AutoMergeControl we need to retrieve the branches for the selected changeset, this seems to be done by BranchesViewModel.RefreshAsync() in the main project |
Agent-Logs-Url: https://github.com/vbtrek/AutoMerge/sessions/03e69601-a813-4818-9b0f-100fdb1168f8 Co-authored-by: vbtrek <26403480+vbtrek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/vbtrek/AutoMerge/sessions/03e69601-a813-4818-9b0f-100fdb1168f8 Co-authored-by: vbtrek <26403480+vbtrek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/vbtrek/AutoMerge/sessions/03e69601-a813-4818-9b0f-100fdb1168f8 Co-authored-by: vbtrek <26403480+vbtrek@users.noreply.github.com>
Author
Implemented in
|
Copilot
AI
changed the title
Refactor AutoMerge.Standalone to reuse shared AutoMerge changeset pipeline
Refactor AutoMerge.Standalone to reuse shared AutoMerge changeset and branch pipelines
May 8, 2026
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.

The new standalone app carried duplicate changeset retrieval/mapping logic instead of reusing the existing AutoMerge implementation. This PR moves standalone onto shared providers/models and exposes only the minimum shared surface needed for that reuse.
Shared provider reuse in standalone
AutoMerge.Standalone/AutoMergeControl.csnow uses:MyChangesetChangesetProviderfor recent changesetsChangesetByIdChangesetProviderfor add-by-idChangesetViewModelas the shared data modelShared branch discovery reuse in standalone
AutoMergeControlnow retrieves branches for the selected changeset using the same branch discovery path as the main project.BranchesViewModel.GetBranches(...)was made reusable and is now used by both:BranchesViewModel.RefreshAsync()in the main projectAutoMergeControl.UpdateBranchesViewAsync()in standaloneProvider extensibility for non-Team Explorer hosts
ChangesetProviderBase(ChangesetService, string projectName)path for direct service injection.MyChangesetChangesetProviderChangesetByIdChangesetProviderMinimal visibility change to enable reuse
Settingschanged frominternaltopublicso standalone can consume shared settings (e.g.,ChangesetCount).