Check for existing pull request on `pr create`
Extends #648 with my fixes

Fixes #649
**Problem:** running `gh pr create` would prompt the user for title, body, submit the data to the API, and ultimately fail with an API error if an open pull request for the current branch already exists. This wastes the user's time and the error message doesn't help them navigate to the PR that already exists.

**Potential solution:** check for existing PR before prompting the user for any input and, if one exists, abort the operation and print the information about the existing PR.

```sh
$ gh pr create
aborted: a pull request already exists for the 'patch-1' branch
https://github.com/OWNER/REPO/pull/123

# or, alternate output:
$ gh pr create
aborted: a pull request already exists for the 'patch-1' branch
Use `gh pr view` to view the current pull request
```

**Considerations:**
- We should allow `pr create --web` to proceed normally even if there is an existing pull request. Since the user has already opted to use the web view, and the web view will inform them of an existing pull request anyway, I don't think it's necessary to perform the check on our end.
`pr create` shoud fail faster if a PR already exists
diff --git a/command/pr_create.go b/command/pr_create.go
index dd747f41d50..ca7800a193d 100644
--- a/command/pr_create.go
+++ b/command/pr_create.go
@@ -123,10 +123,26 @@ func prCreate(cmd *cobra.Command, _ []string) error {
 		if defaultsErr != nil {
 			return fmt.Errorf("could not compute title or body defaults: %w", defaultsErr)
 		}
-		action = SubmitAction
 		title = defs.Title
 		body = defs.Body
-	} else {
+	}
+
+	if !isWeb {
+		headBranchLabel := headBranch
+		if headRepo != nil && !ghrepo.IsSame(baseRepo, headRepo) {
+			headBranchLabel = fmt.Sprintf("%s:%s", headRepo.RepoOwner(), headBranch)
+		}
+		existingPR, err := api.PullRequestForBranch(client, baseRepo, headBranchLabel)
+		var notFound *api.NotFoundError
+		if err != nil && !errors.As(err, &notFound) {
+			return fmt.Errorf("error checking for existing pull request: %w", err)
+		}
+		if err == nil {
+			return fmt.Errorf("a pull request for branch %q already exists:\n%s", headBranchLabel, existingPR.URL)
+		}
+	}
+
+	if !isWeb && !autofill {
 		fmt.Fprintf(colorableErr(cmd), "\nCreating pull request for %s into %s in %s\n\n",
 			utils.Cyan(headBranch),
 			utils.Cyan(baseBranch),

diff --git a/command/pr_create_test.go b/command/pr_create_test.go
index 2bae8075128..688dfd9c8e4 100644
--- a/command/pr_create_test.go
+++ b/command/pr_create_test.go
@@ -14,6 +14,10 @@ func TestPRCreate(t *testing.T) {
 	initBlankContext("OWNER/REPO", "feature")
 	http := initFakeHTTP()
 	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -30,7 +34,7 @@ func TestPRCreate(t *testing.T) {
 	output, err := RunCommand(prCreateCmd, `pr create -t "my title" -b "my body"`)
 	eq(t, err, nil)
 
-	bodyBytes, _ := ioutil.ReadAll(http.Requests[1].Body)
+	bodyBytes, _ := ioutil.ReadAll(http.Requests[2].Body)
 	reqBody := struct {
 		Variables struct {
 			Input struct {
@@ -53,6 +57,32 @@ func TestPRCreate(t *testing.T) {
 	eq(t, output.String(), "https://github.com/OWNER/REPO/pull/12\n")
 }
 
+func TestPRCreate_alreadyExists(t *testing.T) {
+	initBlankContext("OWNER/REPO", "feature")
+	http := initFakeHTTP()
+	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes": [
+			{ "url": "https://github.com/OWNER/REPO/pull/123",
+			  "headRefName": "feature" }
+		] } } } }
+	`))
+
+	cs, cmdTeardown := initCmdStubber()
+	defer cmdTeardown()
+
+	cs.Stub("")                                         // git status
+	cs.Stub("1234567890,commit 0\n2345678901,commit 1") // git log
+
+	_, err := RunCommand(prCreateCmd, `pr create`)
+	if err == nil {
+		t.Fatal("error expected, got nil")
+	}
+	if err.Error() != "a pull request for branch \"feature\" already exists:\nhttps://github.com/OWNER/REPO/pull/123" {
+		t.Errorf("got error %q", err)
+	}
+}
+
 func TestPRCreate_web(t *testing.T) {
 	initBlankContext("OWNER/REPO", "feature")
 	http := initFakeHTTP()
@@ -83,6 +113,10 @@ func TestPRCreate_ReportsUncommittedChanges(t *testing.T) {
 	http := initFakeHTTP()
 
 	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -149,6 +183,10 @@ func TestPRCreate_cross_repo_same_branch(t *testing.T) {
 									"viewerPermission": "WRITE"
 		} } }
 	`))
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -165,7 +203,7 @@ func TestPRCreate_cross_repo_same_branch(t *testing.T) {
 	output, err := RunCommand(prCreateCmd, `pr create -t "cross repo" -b "same branch"`)
 	eq(t, err, nil)
 
-	bodyBytes, _ := ioutil.ReadAll(http.Requests[1].Body)
+	bodyBytes, _ := ioutil.ReadAll(http.Requests[2].Body)
 	reqBody := struct {
 		Variables struct {
 			Input struct {
@@ -194,6 +232,10 @@ func TestPRCreate_survey_defaults_multicommit(t *testing.T) {
 	initBlankContext("OWNER/REPO", "cool_bug-fixes")
 	http := initFakeHTTP()
 	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -231,7 +273,7 @@ func TestPRCreate_survey_defaults_multicommit(t *testing.T) {
 	output, err := RunCommand(prCreateCmd, `pr create`)
 	eq(t, err, nil)
 
-	bodyBytes, _ := ioutil.ReadAll(http.Requests[1].Body)
+	bodyBytes, _ := ioutil.ReadAll(http.Requests[2].Body)
 	reqBody := struct {
 		Variables struct {
 			Input struct {
@@ -260,6 +302,10 @@ func TestPRCreate_survey_defaults_monocommit(t *testing.T) {
 	initBlankContext("OWNER/REPO", "feature")
 	http := initFakeHTTP()
 	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -298,7 +344,7 @@ func TestPRCreate_survey_defaults_monocommit(t *testing.T) {
 	output, err := RunCommand(prCreateCmd, `pr create`)
 	eq(t, err, nil)
 
-	bodyBytes, _ := ioutil.ReadAll(http.Requests[1].Body)
+	bodyBytes, _ := ioutil.ReadAll(http.Requests[2].Body)
 	reqBody := struct {
 		Variables struct {
 			Input struct {
@@ -327,6 +373,10 @@ func TestPRCreate_survey_autofill(t *testing.T) {
 	initBlankContext("OWNER/REPO", "feature")
 	http := initFakeHTTP()
 	http.StubRepoResponse("OWNER", "REPO")
+	http.StubResponse(200, bytes.NewBufferString(`
+		{ "data": { "repository": { "pullRequests": { "nodes" : [
+		] } } } }
+	`))
 	http.StubResponse(200, bytes.NewBufferString(`
 		{ "data": { "createPullRequest": { "pullRequest": {
 			"URL": "https://github.com/OWNER/REPO/pull/12"
@@ -346,7 +396,7 @@ func TestPRCreate_survey_autofill(t *testing.T) {
 	output, err := RunCommand(prCreateCmd, `pr create -f`)
 	eq(t, err, nil)
 
-	bodyBytes, _ := ioutil.ReadAll(http.Requests[1].Body)
+	bodyBytes, _ := ioutil.ReadAll(http.Requests[2].Body)
 	reqBody := struct {
 		Variables struct {
 			Input struct {

{"TestPRCreate_defaults_error_autofill": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_urlArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_branchArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestReplaceExcessiveWhitespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_survey_no": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_reviewsAndChecks": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestChangelogURL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_survey_autofill": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_previewCurrentBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_blankSlate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_branchWithOwnerArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate_org": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_survey_defaults_multicommit": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_defaults_error_interactive": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringClosed": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside/url_arg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_currentBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_closedMerged": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringAssigneeLabels": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_previewCurrentBranchWithEmptyBody": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate_orgWithTeam": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_preview": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/HTTPS_URL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_web": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filtering": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView_fullURL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside/full_name_arg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringRemoveDuplicate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_already_forked": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_alreadyExists": {"run": "NONE", "test": "NONE", "fix": "PASS"}, "TestRepoClone/clone_arguments": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView_ownerRepo": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/shorthand": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_fork": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_survey_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_numberArgWithHash": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_ReportsUncommittedChanges": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_defaults_error_web": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "TestPRCreate_survey_defaults_monocommit": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringAssignee": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_numberArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_noResultsForBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_currentBranch_showTheMostRecentPR": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_survey_no": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/SSH_URL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_cross_repo_same_branch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_survey_yes": {"run": "PASS", "test": "NONE", "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"}, "TestCompletion_fish": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind/Multiple_templates": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestFind": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_numberArgWithHash": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestGraphQL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_RepoCreate": {"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"}, "Test_printError/Cobra_flag_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_zsh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_previewWithEmptyBody": {"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_sameRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_withFlags": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractContents/Has_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_disabledIssues": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_current": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_branchArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL_invalid": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_preview": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo_existingBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_sshParse": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/current_is_prerelease": {"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"}, "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"}, "TestFuzzyAgo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Chinese_filled": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Korean": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo_remoteExists": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractName/Complete_front-matter": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueCreate_web": {"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"}, "Test_Translator": {"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"}, "TestIssueList": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_maintainerCanModify": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Japanese_filled": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError/unknown_Cobra_command_error": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS/macOS": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestForOS/Linux": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_parseRemotes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_notFound": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueStatus_blankSlate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_nullAssigneeLabels": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_newer": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Chinese": {"run": "PASS", "test": "PASS", "fix": "PASS"}}
{"TestPRCreate": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"TestPRCreate_defaults_error_autofill": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_urlArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_branchArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestReplaceExcessiveWhitespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_survey_no": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_reviewsAndChecks": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestChangelogURL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_survey_autofill": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_previewCurrentBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_blankSlate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_branchWithOwnerArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate_org": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_survey_defaults_multicommit": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_defaults_error_interactive": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringClosed": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside/url_arg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_currentBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_closedMerged": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringAssigneeLabels": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_previewCurrentBranchWithEmptyBody": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoCreate_orgWithTeam": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_preview": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/HTTPS_URL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_web": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filtering": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView_fullURL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside/full_name_arg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringRemoveDuplicate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_already_forked": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_alreadyExists": {"run": "NONE", "test": "NONE", "fix": "PASS"}, "TestRepoClone/clone_arguments": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView_ownerRepo": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/shorthand": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_fork": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_survey_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoView": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_numberArgWithHash": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_ReportsUncommittedChanges": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_defaults_error_web": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_survey_defaults_monocommit": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRList_filteringAssignee": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_numberArg": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRView_noResultsForBranch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRStatus_currentBranch_showTheMostRecentPR": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_in_parent_survey_no": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoClone/SSH_URL": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestPRCreate_cross_repo_same_branch": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "TestRepoFork_outside_survey_yes": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 134, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestPRCreate_defaults_error_autofill", "TestRepoFork_in_parent_yes", "TestPRView_urlArg", "TestCompletion_fish", "TestPRView_branchArg", "TestReplaceExcessiveWhitespace", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestCheckForUpdate", "TestPRCreate_survey_autofill", "TestIssueView_numberArgWithHash", "TestPRView_previewCurrentBranch", "TestGraphQL", "Test_RepoCreate", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestPRView_branchWithOwnerArg", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "TestPRCreate_survey_defaults_multicommit", "Test_printError/Cobra_flag_error", "TestCompletion_zsh", "TestPRCreate_defaults_error_interactive", "TestForOS", "TestIssueView_previewWithEmptyBody", "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", "TestPRList_filteringClosed", "TestPRCheckout_sameRepo", "TestRepoFork_outside/url_arg", "TestIssueList_disabledIssues", "TestPRView_currentBranch", "TestPRStatus_closedMerged", "TestIssueList_withFlags", "TestPRList_filteringAssigneeLabels", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "TestExtractContents/Has_front-matter", "TestPRView_preview", "TestIssueView_disabledIssues", "TestRepoClone/HTTPS_URL", "TestCheckForUpdate/latest_is_current", "TestPRCreate_web", "TestPRCheckout_branchArg", "TestPRCheckout_differentRepo", "TestPRList_filtering", "TestRepoView_fullURL", "Test_repoFromURL_invalid", "TestIssueView_preview", "TestRepoFork_outside/full_name_arg", "TestPRList_filteringRemoveDuplicate", "TestPRCheckout_differentRepo_existingBranch", "TestRepoFork_already_forked", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestRepoClone/clone_arguments", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestRepoView_ownerRepo", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestFuzzyAgo", "TestRepoClone/shorthand", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestRepoFork_in_parent_survey_yes", "TestRepoView", "TestPRList", "TestPRView_numberArgWithHash", "TestPRCheckout_differentRepo_remoteExists", "TestPRCreate_ReportsUncommittedChanges", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestPRCreate_defaults_error_web", "TestIssueView_urlArg", "TestIssueCreate_web", "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", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestCheckForUpdate/latest_is_newer", "TestPRView_numberArg", "TestPRView_noResultsForBranch", "Test_printError", "TestTruncate/Japanese_filled", "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", "Test_repoFromURL", "TestPRCreate_cross_repo_same_branch", "Test_parseRemotes", "TestIssueView_notFound", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "TestPRStatus_fork", "TestTruncate/Chinese", "TestRepoFork_outside_survey_yes"], "failed_tests": ["github.com/cli/cli/context"], "skipped_tests": []}
{"passed_count": 78, "failed_count": 3, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestCompletion_fish", "TestFind/Multiple_templates", "TestFind", "TestCheckForUpdate", "TestIssueView_numberArgWithHash", "TestGraphQL", "Test_RepoCreate", "TestTruncate", "TestTruncate/Japanese", "TestCompletion_bash", "TestExtractName/No_front-matter", "Test_printError/Cobra_flag_error", "TestCompletion_zsh", "TestForOS", "TestIssueView_previewWithEmptyBody", "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_sameRepo", "TestIssueList_disabledIssues", "TestExtractContents/Has_front-matter", "TestIssueList_withFlags", "TestIssueView_disabledIssues", "TestCheckForUpdate/latest_is_current", "TestPRCheckout_branchArg", "TestPRCheckout_differentRepo", "Test_repoFromURL_invalid", "TestIssueView_preview", "TestPRCheckout_differentRepo_existingBranch", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestFuzzyAgo", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestPRCheckout_differentRepo_remoteExists", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestIssueView_urlArg", "TestIssueCreate_web", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "Test_Translator", "TestExtractContents/No_front-matter", "TestPRCheckout_differentRepo_currentBranch", "TestCheckForUpdate/latest_is_older", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestTruncate/Japanese_filled", "Test_printError", "Test_printError/unknown_Cobra_command_error", "TestForOS/macOS", "TestForOS/Linux", "Test_repoFromURL", "Test_parseRemotes", "TestIssueView_notFound", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "TestCheckForUpdate/latest_is_newer", "TestTruncate/Chinese"], "failed_tests": ["github.com/cli/cli/context", "github.com/cli/cli/command", "TestPRCreate"], "skipped_tests": []}
{"passed_count": 135, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestPRCreate_defaults_error_autofill", "TestRepoFork_in_parent_yes", "TestPRView_urlArg", "TestCompletion_fish", "TestPRView_branchArg", "TestReplaceExcessiveWhitespace", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestCheckForUpdate", "TestPRCreate_survey_autofill", "TestIssueView_numberArgWithHash", "TestPRView_previewCurrentBranch", "TestGraphQL", "Test_RepoCreate", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestPRView_branchWithOwnerArg", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "TestPRCreate_survey_defaults_multicommit", "Test_printError/Cobra_flag_error", "TestCompletion_zsh", "TestPRCreate_defaults_error_interactive", "TestForOS", "TestIssueView_previewWithEmptyBody", "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", "TestPRList_filteringClosed", "TestPRCheckout_sameRepo", "TestRepoFork_outside/url_arg", "TestIssueList_disabledIssues", "TestPRView_currentBranch", "TestPRStatus_closedMerged", "TestIssueList_withFlags", "TestPRList_filteringAssigneeLabels", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "TestExtractContents/Has_front-matter", "TestPRView_preview", "TestIssueView_disabledIssues", "TestRepoClone/HTTPS_URL", "TestCheckForUpdate/latest_is_current", "TestPRCreate_web", "TestPRCheckout_branchArg", "TestPRCheckout_differentRepo", "TestPRList_filtering", "TestRepoView_fullURL", "Test_repoFromURL_invalid", "TestIssueView_preview", "TestRepoFork_outside/full_name_arg", "TestPRList_filteringRemoveDuplicate", "TestPRCheckout_differentRepo_existingBranch", "TestRepoFork_already_forked", "TestPRCreate_alreadyExists", "Test_sshParse", "TestCheckForUpdate/current_is_prerelease", "TestRepoClone/clone_arguments", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestRepoView_ownerRepo", "TestCompletion_powerShell", "TestFind/Empty_multiple_templates_directory", "TestExtractName", "TestForOS/Windows", "TestFuzzyAgo", "TestRepoClone/shorthand", "TestTruncate/Chinese_filled", "TestTruncate/Korean", "TestRepoFork_in_parent_survey_yes", "TestRepoView", "TestPRList", "TestPRView_numberArgWithHash", "TestPRCheckout_differentRepo_remoteExists", "TestPRCreate_ReportsUncommittedChanges", "TestExtractName/Complete_front-matter", "TestPRCheckout_urlArg", "TestPRCreate_defaults_error_web", "TestIssueView_urlArg", "TestIssueCreate_web", "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", "TestIssueList", "TestPRCheckout_maintainerCanModify", "TestCheckForUpdate/latest_is_newer", "TestPRView_numberArg", "TestPRView_noResultsForBranch", "Test_printError", "TestTruncate/Japanese_filled", "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", "Test_repoFromURL", "TestPRCreate_cross_repo_same_branch", "Test_parseRemotes", "TestIssueView_notFound", "TestIssueStatus_blankSlate", "TestIssueList_nullAssigneeLabels", "TestPRStatus_fork", "TestTruncate/Chinese", "TestRepoFork_outside_survey_yes"], "failed_tests": ["github.com/cli/cli/context"], "skipped_tests": []}