feat(fork): implement repository forking functionality in gt new#1442
feat(fork): implement repository forking functionality in gt new#1442notheotherben merged 18 commits intomainfrom
gt new#1442Conversation
- add 'from' argument to create a fork of an existing remote repository - add fork_repo method to GitHubService for forking repositories - create ForkRepository task to handle repository forking - update GitClone to use default struct initialization - implement GitAddRemote task for adding/removing git remotes - add tests for ForkRepository and GitAddRemote functionalities
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1442 +/- ##
==========================================
+ Coverage 85.28% 85.49% +0.21%
==========================================
Files 97 98 +1
Lines 9889 10143 +254
==========================================
+ Hits 8434 8672 +238
- Misses 1455 1471 +16
🚀 New features to boost your workflow:
|
| ]; | ||
|
|
||
| if let Some(from_repo) = matches.get_one::<String>("from") { | ||
| let from_repo_id: Identifier = from_repo.as_str().parse()?; |
There was a problem hiding this comment.
I wonder whether we need to support --from https://github.com/... style remotes here (instead of just supporting valid identifiers). Presumably that would be a different codepath since it wouldn't support any of the remote fork workflows etc.
| async fn complete(&self, core: &Core, completer: &Completer, _matches: &ArgMatches) { | ||
| completer.offer("--open"); | ||
| completer.offer("--no-create-remote"); | ||
| completer.offer("--from"); |
There was a problem hiding this comment.
I haven't checked, but we may want to look at completer and _matches to determine whether the current completion target is "whatever follows --from" and ensure we're suggesting full repo names in that case as well.
This isn't a big deal to be fair, but it could make for a nicer autocomplete experience.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
…us cargo invocations which are failing to find libdbus during flake builds
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-00ba9e303-1442.westeurope.1.azurestaticapps.net |
Fixes #1424