repo fork: reuse existing git remote if available
Avoid adding a new git remote for a fork if an existing remote is found that points to the exact forked repo.

Fixes #580
### Describe the bug

`gh repo fork` (introduced in #549) does not detect that an existing fork already has a local remote reference, and adds a new one.

gh version:
```
gh version 0.6.0 (2020-03-03)
https://github.com/cli/cli/releases/tag/v0.6.0
```

### Steps to reproduce the behavior

1. Navigate to a repo that has already been forked, e.g. by `hub fork` (that means it'll have a remote with the user's name; in my case, "waldyrious")
2. Run `gh repo fork` and accept the prompt:
   ```
   Homebrew/homebrew-core $ gh repo fork
   Forking Homebrew/homebrew-core...
   ! waldyrious/homebrew-core already exists
   ? Would you like to add a remote for the fork? Yes
   ✓ Remote added at fork
3. Now there will be two remote references to the same fork:
   ```
   Homebrew/homebrew-core $ git remote -v
   fork	https://github.com/waldyrious/homebrew-core.git (fetch)
   fork	https://github.com/waldyrious/homebrew-core.git (push)
   origin	https://github.com/Homebrew/homebrew-core (fetch)
   origin	https://github.com/Homebrew/homebrew-core (push)
   waldyrious	git@github.com:waldyrious/homebrew-core.git (fetch)
   waldyrious	git@github.com:waldyrious/homebrew-core.git (push)
   ```
### Expected vs actual behavior

I expected the behavior to be something like this instead:

```
Homebrew/homebrew-core $ gh repo fork
Forking Homebrew/homebrew-core...
✓ waldyrious/homebrew-core already exists and has a local remote reference "waldyrious"
```

`gh repo fork` should detect existing remote
diff --git a/command/repo.go b/command/repo.go
index d027c642cc8..701f8cfc1ac 100644
--- a/command/repo.go
+++ b/command/repo.go
@@ -303,14 +303,6 @@ func repoFork(cmd *cobra.Command, args []string) error {
 	s.FinalMSG = utils.Gray(fmt.Sprintf("- %s\n", loading))
 	s.Start()
 
-	authLogin, err := ctx.AuthLogin()
-	if err != nil {
-		s.Stop()
-		return fmt.Errorf("could not determine current username: %w", err)
-	}
-
-	possibleFork := ghrepo.New(authLogin, toFork.RepoName())
-
 	forkedRepo, err := api.ForkRepo(apiClient, toFork)
 	if err != nil {
 		s.Stop()
@@ -323,11 +315,11 @@ func repoFork(cmd *cobra.Command, args []string) error {
 	// returns the fork repo data even if it already exists -- with no change in status code or
 	// anything. We thus check the created time to see if the repo is brand new or not; if it's not,
 	// we assume the fork already existed and report an error.
-	created_ago := Since(forkedRepo.CreatedAt)
-	if created_ago > time.Minute {
+	createdAgo := Since(forkedRepo.CreatedAt)
+	if createdAgo > time.Minute {
 		fmt.Fprintf(out, "%s %s %s\n",
 			utils.Yellow("!"),
-			utils.Bold(ghrepo.FullName(possibleFork)),
+			utils.Bold(ghrepo.FullName(forkedRepo)),
 			"already exists")
 	} else {
 		fmt.Fprintf(out, "%s Created fork %s\n", greenCheck, utils.Bold(ghrepo.FullName(forkedRepo)))
@@ -338,6 +330,15 @@ func repoFork(cmd *cobra.Command, args []string) error {
 	}
 
 	if inParent {
+		remotes, err := ctx.Remotes()
+		if err != nil {
+			return err
+		}
+		if remote, err := remotes.FindByRepo(forkedRepo.RepoOwner(), forkedRepo.RepoName()); err == nil {
+			fmt.Fprintf(out, "%s Using existing remote %s\n", greenCheck, utils.Bold(remote.Name))
+			return nil
+		}
+
 		remoteDesired := remotePref == "true"
 		if remotePref == "prompt" {
 			err = Confirm("Would you like to add a remote for the fork?", &remoteDesired)

diff --git a/command/repo_test.go b/command/repo_test.go
index 979f45cd0f1..1d2e303a0f5 100644
--- a/command/repo_test.go
+++ b/command/repo_test.go
@@ -18,9 +18,8 @@ import (
 func TestRepoFork_already_forked(t *testing.T) {
 	initContext = func() context.Context {
 		ctx := context.NewBlank()
-		ctx.SetBaseRepo("REPO")
+		ctx.SetBaseRepo("OWNER/REPO")
 		ctx.SetBranch("master")
-		ctx.SetAuthLogin("someone")
 		ctx.SetRemotes(map[string]string{
 			"origin": "OWNER/REPO",
 		})
@@ -41,6 +40,31 @@ func TestRepoFork_already_forked(t *testing.T) {
 	}
 }
 
+func TestRepoFork_reuseRemote(t *testing.T) {
+	initContext = func() context.Context {
+		ctx := context.NewBlank()
+		ctx.SetBaseRepo("OWNER/REPO")
+		ctx.SetBranch("master")
+		ctx.SetRemotes(map[string]string{
+			"upstream": "OWNER/REPO",
+			"origin":   "someone/REPO",
+		})
+		return ctx
+	}
+	http := initFakeHTTP()
+	http.StubRepoResponse("OWNER", "REPO")
+	defer http.StubWithFixture(200, "forkResult.json")()
+
+	output, err := RunCommand(repoForkCmd, "repo fork")
+	if err != nil {
+		t.Errorf("got unexpected error: %v", err)
+	}
+	if !strings.Contains(output.String(), "Using existing remote origin") {
+		t.Errorf("output did not match: %q", output)
+		return
+	}
+}
+
 func stubSince(d time.Duration) func() {
 	originalSince := Since
 	Since = func(t time.Time) time.Duration {

{"TestRepoFork_reuseRemote": {"run": "NONE", "test": "FAIL", "fix": "PASS"}, "TestRepoFork_already_forked": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"TestExtractName/Incomplete_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPullRequest_ChecksStatus": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueCreate_webTitleBody": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_defaults_error_autofill": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_in_parent_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_fish": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestReplaceExcessiveWhitespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_currentBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL/unsupported_hostname": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Multiple_templates": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside_survey_no": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_reviewsAndChecks": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestChangelogURL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_numberArgWithHash": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/one_result_after_filters": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_survey_autofill": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_branchWithOwnerArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_previewCurrentBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestGraphQL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_RepoCreate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_blankSlate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Japanese": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_bash": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractName/No_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoCreate_org": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_survey_defaults_multicommit": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_web_numberArgWithHash": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError/Cobra_flag_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_zsh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_defaults_error_interactive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL/filesystem_path": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_web_ownerRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoCreate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_UncommittedChangeCount": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_ttyTablePrinter_truncate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError/DNS_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueStatus": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Template_in_docs": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractContents": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Template_in_.github_takes_precedence": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError/generic_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_urlArg_differentBase": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filteringClosed": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_sameRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside/url_arg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_alreadyExistsDifferentBase": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filteringAssigneeLabels": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractContents/Has_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_withFlags": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_previewCurrentBranchWithEmptyBody": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoCreate_orgWithTeam": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_preview": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_web_fullURL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/one_result_in_total": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone/HTTPS_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_current": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_branchArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_WithEmptyBody": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/multiple_results": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filtering": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_numberArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside/full_name_arg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filteringRemoveDuplicate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo_existingBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_alreadyExists": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_sshParse": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/current_is_prerelease": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone/clone_arguments": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL/github.com_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueStatus_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueCreate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Korean_filled": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestGraphQLError": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/one_result_in_total_after_filters": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_powerShell": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Empty_multiple_templates_directory": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractName": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS/Windows": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_web_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFuzzyAgo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone/shorthand": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_fork": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_noResultsForBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Chinese_filled": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Korean": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_in_parent_survey_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/no_results": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/no_matches_after_filters": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_blanks": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo_remoteExists": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_ReportsUncommittedChanges": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractName/Complete_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_defaults_error_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_currentBranch_Closed": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_nonmarkdown_readme": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueCreate_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_web_branchArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_existingBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueCreate_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Template_in_root": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_unsupported": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_Translator": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_survey_defaults_monocommit": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filteringAssignee": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractContents/No_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo_currentBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_older": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/multiple_results_after_filters": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_maintainerCanModify": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Japanese_filled": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_listHeader/one_result": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError/unknown_Cobra_command_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS/macOS": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_in_parent": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS/Linux": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_currentBranch_showTheMostRecentPR": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_in_parent_survey_no": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone/SSH_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_web_notFound": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_cross_repo_same_branch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_parseRemotes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_currentBranch_Merged": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueStatus_blankSlate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_nullAssigneeLabels": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL/www.github.com_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_newer": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Chinese": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside_survey_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}}
{"TestRepoFork_reuseRemote": {"run": "NONE", "test": "FAIL", "fix": "PASS"}, "TestRepoFork_already_forked": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"passed_count": 153, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestPRCreate_defaults_error_autofill", "TestRepoFork_in_parent_yes", "TestCompletion_fish", "TestReplaceExcessiveWhitespace", "TestPRView_web_currentBranch", "Test_repoFromURL/unsupported_hostname", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestPRView_web_numberArgWithHash", "TestCheckForUpdate", "Test_listHeader/one_result_after_filters", "TestPRCreate_survey_autofill", "TestPRView_web_branchWithOwnerArg", "TestPRView_previewCurrentBranch", "TestGraphQL", "Test_RepoCreate", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "TestPRCreate_survey_defaults_multicommit", "TestIssueView_web_numberArgWithHash", "Test_listHeader", "Test_printError/Cobra_flag_error", "TestIssueView_web", "TestCompletion_zsh", "TestPRCreate_defaults_error_interactive", "TestForOS", "Test_repoFromURL/filesystem_path", "TestRepoView_web_ownerRepo", "TestRepoCreate", "TestRepoFork_outside_yes", "Test_UncommittedChangeCount", "Test_ttyTablePrinter_truncate", "Test_printError/DNS_error", "TestIssueStatus", "TestFind/Template_in_docs", "TestExtractContents", "TestFind/Template_in_.github_takes_precedence", "Test_printError/generic_error", "TestPRCheckout_urlArg_differentBase", "TestPRList_filteringClosed", "TestPRCheckout_sameRepo", "TestRepoFork_outside/url_arg", "TestIssueList_disabledIssues", "TestPRCreate_alreadyExistsDifferentBase", "TestPRList_filteringAssigneeLabels", "TestExtractContents/Has_front-matter", "TestIssueList_withFlags", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "TestPRView_preview", "TestIssueView_disabledIssues", "TestRepoView_web_fullURL", "Test_listHeader/one_result_in_total", "TestRepoClone/HTTPS_URL", "TestCheckForUpdate/latest_is_current", "TestRepoView_web", "TestPRCreate_web", "TestPRCheckout_branchArg", "TestIssueView_WithEmptyBody", "TestPRCheckout_differentRepo", "Test_listHeader/multiple_results", "TestPRList_filtering", "TestPRView_web_urlArg", "TestPRView_web_numberArg", "TestRepoFork_outside/full_name_arg", "TestPRList_filteringRemoveDuplicate", "TestPRCheckout_differentRepo_existingBranch", "TestRepoFork_already_forked", "TestPRCreate_alreadyExists", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestRepoClone/clone_arguments", "Test_repoFromURL/github.com_URL", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "Test_listHeader/one_result_in_total_after_filters", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestIssueView_web_urlArg", "TestFuzzyAgo", "TestRepoClone/shorthand", "TestPRView_web_noResultsForBranch", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestRepoFork_in_parent_survey_yes", "TestRepoView", "TestPRList", "Test_listHeader/no_results", "Test_listHeader/no_matches_after_filters", "TestRepoView_blanks", "TestPRCheckout_differentRepo_remoteExists", "TestPRCreate_ReportsUncommittedChanges", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestPRCreate_defaults_error_web", "TestPRStatus_currentBranch_Closed", "TestRepoView_nonmarkdown_readme", "TestIssueCreate_web", "TestPRView_web_branchArg", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "TestPRCreate_survey_defaults_monocommit", "TestPRList_filteringAssignee", "TestExtractContents/No_front-matter", "TestPRCheckout_differentRepo_currentBranch", "TestCheckForUpdate/latest_is_older", "Test_listHeader/multiple_results_after_filters", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestCheckForUpdate/latest_is_newer", "TestTruncate/Japanese_filled", "Test_printError", "Test_listHeader/one_result", "TestPRStatus", "Test_printError/unknown_Cobra_command_error", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "TestPRStatus_currentBranch_showTheMostRecentPR", "TestRepoFork_in_parent_survey_no", "TestRepoClone/SSH_URL", "TestIssueView_web_notFound", "TestPRCreate_cross_repo_same_branch", "Test_parseRemotes", "Test_repoFromURL", "TestPRStatus_currentBranch_Merged", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "Test_repoFromURL/www.github.com_URL", "TestPRStatus_fork", "TestTruncate/Chinese", "TestRepoFork_outside_survey_yes"], "failed_tests": ["github.com/cli/cli/context"], "skipped_tests": []}
{"passed_count": 152, "failed_count": 4, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestPRCreate_defaults_error_autofill", "TestRepoFork_in_parent_yes", "TestCompletion_fish", "TestReplaceExcessiveWhitespace", "TestPRView_web_currentBranch", "Test_repoFromURL/unsupported_hostname", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestPRView_web_numberArgWithHash", "TestCheckForUpdate", "Test_listHeader/one_result_after_filters", "TestPRCreate_survey_autofill", "TestPRView_web_branchWithOwnerArg", "TestPRView_previewCurrentBranch", "TestGraphQL", "Test_RepoCreate", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "TestPRCreate_survey_defaults_multicommit", "TestIssueView_web_numberArgWithHash", "Test_listHeader", "Test_printError/Cobra_flag_error", "TestIssueView_web", "TestCompletion_zsh", "TestPRCreate_defaults_error_interactive", "TestForOS", "Test_repoFromURL/filesystem_path", "TestRepoView_web_ownerRepo", "TestRepoCreate", "TestRepoFork_outside_yes", "Test_UncommittedChangeCount", "Test_ttyTablePrinter_truncate", "Test_printError/DNS_error", "TestIssueStatus", "TestFind/Template_in_docs", "TestExtractContents", "TestFind/Template_in_.github_takes_precedence", "Test_printError/generic_error", "TestPRCheckout_urlArg_differentBase", "TestPRList_filteringClosed", "TestPRCheckout_sameRepo", "TestRepoFork_outside/url_arg", "TestIssueList_disabledIssues", "TestPRCreate_alreadyExistsDifferentBase", "TestPRList_filteringAssigneeLabels", "TestExtractContents/Has_front-matter", "TestIssueList_withFlags", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "TestPRView_preview", "TestIssueView_disabledIssues", "TestRepoView_web_fullURL", "Test_listHeader/one_result_in_total", "TestRepoClone/HTTPS_URL", "TestCheckForUpdate/latest_is_current", "TestRepoView_web", "TestPRCreate_web", "TestPRCheckout_branchArg", "TestIssueView_WithEmptyBody", "TestPRCheckout_differentRepo", "Test_listHeader/multiple_results", "TestPRList_filtering", "TestPRView_web_urlArg", "TestPRView_web_numberArg", "TestRepoFork_outside/full_name_arg", "TestPRList_filteringRemoveDuplicate", "TestPRCheckout_differentRepo_existingBranch", "TestPRCreate_alreadyExists", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestRepoClone/clone_arguments", "Test_repoFromURL/github.com_URL", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "Test_listHeader/one_result_in_total_after_filters", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestIssueView_web_urlArg", "TestFuzzyAgo", "TestRepoClone/shorthand", "TestPRView_web_noResultsForBranch", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestRepoFork_in_parent_survey_yes", "TestRepoView", "TestPRList", "Test_listHeader/no_results", "Test_listHeader/no_matches_after_filters", "TestRepoView_blanks", "TestPRCheckout_differentRepo_remoteExists", "TestPRCreate_ReportsUncommittedChanges", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestPRCreate_defaults_error_web", "TestPRStatus_currentBranch_Closed", "TestRepoView_nonmarkdown_readme", "TestIssueCreate_web", "TestPRView_web_branchArg", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "TestPRCreate_survey_defaults_monocommit", "TestPRList_filteringAssignee", "TestExtractContents/No_front-matter", "TestPRCheckout_differentRepo_currentBranch", "TestCheckForUpdate/latest_is_older", "Test_listHeader/multiple_results_after_filters", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestCheckForUpdate/latest_is_newer", "TestTruncate/Japanese_filled", "Test_printError", "Test_listHeader/one_result", "TestPRStatus", "Test_printError/unknown_Cobra_command_error", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "TestPRStatus_currentBranch_showTheMostRecentPR", "TestRepoFork_in_parent_survey_no", "TestRepoClone/SSH_URL", "TestIssueView_web_notFound", "TestPRCreate_cross_repo_same_branch", "Test_parseRemotes", "Test_repoFromURL", "TestPRStatus_currentBranch_Merged", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "Test_repoFromURL/www.github.com_URL", "TestPRStatus_fork", "TestTruncate/Chinese", "TestRepoFork_outside_survey_yes"], "failed_tests": ["TestRepoFork_already_forked", "github.com/cli/cli/command", "TestRepoFork_reuseRemote", "github.com/cli/cli/context"], "skipped_tests": []}
{"passed_count": 154, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestPRCreate_defaults_error_autofill", "TestRepoFork_in_parent_yes", "TestCompletion_fish", "TestReplaceExcessiveWhitespace", "TestPRView_web_currentBranch", "Test_repoFromURL/unsupported_hostname", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestPRView_web_numberArgWithHash", "TestCheckForUpdate", "Test_listHeader/one_result_after_filters", "TestPRCreate_survey_autofill", "TestPRView_web_branchWithOwnerArg", "TestPRView_previewCurrentBranch", "TestGraphQL", "Test_RepoCreate", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "TestPRCreate_survey_defaults_multicommit", "TestIssueView_web_numberArgWithHash", "Test_listHeader", "Test_printError/Cobra_flag_error", "TestIssueView_web", "TestCompletion_zsh", "TestPRCreate_defaults_error_interactive", "TestForOS", "Test_repoFromURL/filesystem_path", "TestRepoView_web_ownerRepo", "TestRepoCreate", "TestRepoFork_outside_yes", "Test_UncommittedChangeCount", "Test_ttyTablePrinter_truncate", "Test_printError/DNS_error", "TestIssueStatus", "TestFind/Template_in_docs", "TestExtractContents", "TestFind/Template_in_.github_takes_precedence", "Test_printError/generic_error", "TestPRCheckout_urlArg_differentBase", "TestPRList_filteringClosed", "TestPRCheckout_sameRepo", "TestRepoFork_outside/url_arg", "TestIssueList_disabledIssues", "TestPRCreate_alreadyExistsDifferentBase", "TestPRList_filteringAssigneeLabels", "TestExtractContents/Has_front-matter", "TestIssueList_withFlags", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoFork_reuseRemote", "TestRepoCreate_orgWithTeam", "TestPRView_preview", "TestIssueView_disabledIssues", "TestRepoView_web_fullURL", "Test_listHeader/one_result_in_total", "TestRepoClone/HTTPS_URL", "TestCheckForUpdate/latest_is_current", "TestRepoView_web", "TestPRCreate_web", "TestPRCheckout_branchArg", "TestIssueView_WithEmptyBody", "TestPRCheckout_differentRepo", "Test_listHeader/multiple_results", "TestPRList_filtering", "TestPRView_web_urlArg", "TestPRView_web_numberArg", "TestRepoFork_outside/full_name_arg", "TestPRList_filteringRemoveDuplicate", "TestPRCheckout_differentRepo_existingBranch", "TestRepoFork_already_forked", "TestPRCreate_alreadyExists", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestRepoClone/clone_arguments", "Test_repoFromURL/github.com_URL", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "Test_listHeader/one_result_in_total_after_filters", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestIssueView_web_urlArg", "TestFuzzyAgo", "TestRepoClone/shorthand", "TestPRView_web_noResultsForBranch", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestRepoFork_in_parent_survey_yes", "TestRepoView", "TestPRList", "Test_listHeader/no_results", "Test_listHeader/no_matches_after_filters", "TestRepoView_blanks", "TestPRCheckout_differentRepo_remoteExists", "TestPRCreate_ReportsUncommittedChanges", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestPRCreate_defaults_error_web", "TestPRStatus_currentBranch_Closed", "TestRepoView_nonmarkdown_readme", "TestIssueCreate_web", "TestPRView_web_branchArg", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "TestPRCreate_survey_defaults_monocommit", "TestPRList_filteringAssignee", "TestExtractContents/No_front-matter", "TestPRCheckout_differentRepo_currentBranch", "TestCheckForUpdate/latest_is_older", "Test_listHeader/multiple_results_after_filters", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestCheckForUpdate/latest_is_newer", "TestTruncate/Japanese_filled", "Test_printError", "Test_listHeader/one_result", "TestPRStatus", "Test_printError/unknown_Cobra_command_error", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "TestPRStatus_currentBranch_showTheMostRecentPR", "TestRepoFork_in_parent_survey_no", "TestRepoClone/SSH_URL", "TestIssueView_web_notFound", "TestPRCreate_cross_repo_same_branch", "Test_parseRemotes", "Test_repoFromURL", "TestPRStatus_currentBranch_Merged", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "Test_repoFromURL/www.github.com_URL", "TestPRStatus_fork", "TestTruncate/Chinese", "TestRepoFork_outside_survey_yes"], "failed_tests": ["github.com/cli/cli/context"], "skipped_tests": []}