M7: Local clone (Download Repository)#294
Draft
michaeljolley wants to merge 1 commit into
Draft
Conversation
Add the ability to clone a GitHub repository to the local machine, respecting a configurable clone location and git availability. - IGitService / GitService: locates git on the PATH and shells out to 'git clone <url> <destination>'. Git availability and process launch are abstracted behind the interface so the clone flow is unit tested without a real git install or spawned process. MSIX sandbox constraints surface as clone failures turned into error toasts. - ICloneSettingsStore / CloneSettingsStore: persists the clone base directory via LocalSettings; defaults to %USERPROFILE%\\source\\repos. - IRepositoryCloneManager / RepositoryCloneManager: resolves the clone URL (owner/repo, GitHub URL, or clone URL) and destination directory, validates git availability, guards against a non-empty destination, and returns the local clone path. - CloneRepositoryForm + template: top-level Clone Repository command with a repository field and optional target directory (placeholder shows the default). - CloneRepositoryCommand: per-item Clone Repository action on the Repositories search page, cloning from the repo's clone URL into the configured directory. - Composition-root wiring, ResW strings, and tests: URL/owner-repo resolution, git-missing guard, configured vs explicit target directory, default-directory resolution, and form JSON rendering. 209/209 tests pass. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Part of the RayCast parity roadmap. Stacked on top of #293 (M6).
What this adds
Clone a GitHub repository to the local machine, respecting a configurable clone location and git availability.
Tests
Notes