Support opening Pull Request by commit sha
Fix #351 

I know you haven't added any additional feature PR. However, please refer to it.
### Describe the feature or problem you’d like to solve

Pull Request is often an important clue when something goes wrong. It is often possible to follow the merged PR via the GitHub API from the commit hash, so I want to add that option.

### Proposed solution

Add `s` (sha) option to `gh pr view`.

e.g.)
Open PR from 9506d89.

```
% gh pr view -s 9506d89
Opening https://github.com/cli/cli/pull/244 in your browser.
```
Support opening Pull Request by commit sha
diff --git a/api/queries_pr.go b/api/queries_pr.go
index 34884d16f7f..d9d9a21bd93 100644
--- a/api/queries_pr.go
+++ b/api/queries_pr.go
@@ -341,6 +341,65 @@ func PullRequestByNumber(client *Client, repo ghrepo.Interface, number int) (*Pu
 	return &resp.Repository.PullRequest, nil
 }
 
+func PullRequestBySha(client *Client, vars map[string]interface{}) (*PullRequest, error) {
+	type prBlock struct {
+		Edges []struct {
+			Node PullRequest
+		}
+		PageInfo struct {
+			HasNextPage bool
+			EndCursor   string
+		}
+	}
+	type response struct {
+		Search prBlock
+	}
+
+	fragment := `
+	fragment pr on PullRequest {
+		url
+		number
+		title
+		body
+	}
+	`
+
+	query := fragment + `
+	query($q: String!) {
+		search(query: $q, type: ISSUE, first: 1) {
+			edges {
+				node {
+					...pr
+          		}
+			}
+		}
+	}`
+
+	variables := map[string]interface{}{}
+	owner := vars["owner"].(string)
+	repo := vars["repo"].(string)
+	sha := vars["sha"].(string)
+	search := []string{
+		fmt.Sprintf("repo:%s/%s", owner, repo),
+		sha,
+		"is:pr",
+		"sort:created-asc",
+	}
+	variables["q"] = strings.Join(search, " ")
+
+	var resp response
+	err := client.GraphQL(query, variables, &resp)
+	if err != nil {
+		return nil, err
+	}
+
+	for _, edge := range resp.Search.Edges {
+		return &edge.Node, nil
+	}
+
+	return nil, &NotFoundError{fmt.Errorf("no open pull requests found for sha %q", sha)}
+}
+
 func PullRequestForBranch(client *Client, repo ghrepo.Interface, branch string) (*PullRequest, error) {
 	type response struct {
 		Repository struct {
diff --git a/command/pr.go b/command/pr.go
index 688bddf2a7c..6a26c7d770f 100644
--- a/command/pr.go
+++ b/command/pr.go
@@ -32,6 +32,7 @@ func init() {
 	prListCmd.Flags().StringP("assignee", "a", "", "Filter by assignee")
 
 	prViewCmd.Flags().BoolP("preview", "p", false, "Display preview of pull request content")
+	prViewCmd.Flags().StringP("sha", "s", "", "Commit sha hash of pull request")
 }
 
 var prCmd = &cobra.Command{
@@ -266,10 +267,20 @@ func prView(cmd *cobra.Command, args []string) error {
 	if err != nil {
 		return err
 	}
+	sha, err := cmd.Flags().GetString("sha")
+	if err != nil {
+		return err
+	}
 
 	var openURL string
 	var pr *api.PullRequest
-	if len(args) > 0 {
+	if sha != "" {
+		pr, err = prFromSha(apiClient, baseRepo, sha)
+		if err != nil {
+			return err
+		}
+		openURL = pr.URL
+	} else if len(args) > 0 {
 		pr, err = prFromArg(apiClient, baseRepo, args[0])
 		if err != nil {
 			return err
@@ -346,6 +357,15 @@ func prFromArg(apiClient *api.Client, baseRepo ghrepo.Interface, arg string) (*a
 	return api.PullRequestForBranch(apiClient, baseRepo, arg)
 }
 
+func prFromSha(apiClient *api.Client, baseRepo ghrepo.Interface, sha string) (*api.PullRequest, error) {
+	params := map[string]interface{}{
+		"owner": baseRepo.RepoOwner(),
+		"repo":  baseRepo.RepoName(),
+		"sha":   sha,
+	}
+	return api.PullRequestBySha(apiClient, params)
+}
+
 func prSelectorForCurrentBranch(ctx context.Context, baseRepo ghrepo.Interface) (prNumber int, prHeadRef string, err error) {
 	prHeadRef, err = ctx.Branch()
 	if err != nil {

diff --git a/command/pr_test.go b/command/pr_test.go
index 395dd4097df..085611b2e53 100644
--- a/command/pr_test.go
+++ b/command/pr_test.go
@@ -586,6 +586,36 @@ func TestPRView_urlArg(t *testing.T) {
 	eq(t, url, "https://github.com/OWNER/REPO/pull/23")
 }
 
+func TestPRView_shaArg(t *testing.T) {
+	initBlankContext("OWNER/REPO", "master")
+	http := initFakeHTTP()
+	http.StubRepoResponse("OWNER", "REPO")
+
+	jsonFile, _ := os.Open("../test/fixtures/prView_Sha.json")
+	defer jsonFile.Close()
+	http.StubResponse(200, jsonFile)
+
+	var seenCmd *exec.Cmd
+	restoreCmd := utils.SetPrepareCmd(func(cmd *exec.Cmd) utils.Runnable {
+		seenCmd = cmd
+		return &outputStub{}
+	})
+	defer restoreCmd()
+
+	output, err := RunCommand(prViewCmd, "pr view -s 9b5a719a3d76ac9dc2fa635d9b1f34fd73994c06")
+	if err != nil {
+		t.Errorf("error running command `pr view`: %v", err)
+	}
+
+	eq(t, output.String(), "")
+
+	if seenCmd == nil {
+		t.Fatal("expected a command to run")
+	}
+	url := seenCmd.Args[len(seenCmd.Args)-1]
+	eq(t, url, "https://github.com/monalisa/hello/pull/32")
+}
+
 func TestPRView_branchArg(t *testing.T) {
 	initBlankContext("OWNER/REPO", "master")
 	http := initFakeHTTP()
diff --git a/test/fixtures/prView_Sha.json b/test/fixtures/prView_Sha.json
new file mode 100644
index 00000000000..396ee4407f4
--- /dev/null
+++ b/test/fixtures/prView_Sha.json
@@ -0,0 +1,20 @@
+{
+  "data": {
+    "search": {
+      "edges": [
+        {
+          "node": {
+            "number": 32,
+            "title": "New feature",
+            "url": "https://github.com/monalisa/hello/pull/32",
+            "headRefName": "feature"
+          }
+        }
+      ],
+      "pageInfo": {
+        "hasNextPage": false,
+        "endCursor": ""
+      }
+    }
+  }
+}

{"TestPRView_shaArg": {"run": "NONE", "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"}, "TestRepoFork_in_parent_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_urlArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCompletion_fish": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_branchArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestReplaceExcessiveWhitespace": {"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"}, "TestCheckForUpdate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_numberArgWithHash": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_previewCurrentBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestGraphQL": {"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"}, "TestPRView_branchWithOwnerArg": {"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"}, "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"}, "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"}, "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"}, "TestPRList_filteringAssigneeLabels": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_currentBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_withFlags": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestExtractContents/Has_front-matter": {"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"}, "TestRepoClone/HTTPS_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_current": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCreate_web": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_branchArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_differentRepo": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRList_filtering": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoView_fullURL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL_invalid": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueView_preview": {"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"}, "TestRepoFork_already_forked": {"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"}, "TestGitStatusHelperProcess": {"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"}, "TestRepoView_ownerRepo": {"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"}, "TestRepoClone/shorthand": {"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"}, "TestPRView_numberArgWithHash": {"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"}, "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"}, "TestPRCreate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_Translator": {"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"}, "TestIssueList": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRCheckout_maintainerCanModify": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestCheckForUpdate/latest_is_newer": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_numberArg": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRView_noResultsForBranch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_printError": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Japanese_filled": {"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"}, "TestPrCreateHelperProcess": {"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"}, "TestRepoFork_in_parent_survey_no": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoClone/SSH_URL": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Test_repoFromURL": {"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"}, "TestIssueView_notFound": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueStatus_blankSlate": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestIssueList_nullAssigneeLabels": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestPRStatus_fork": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestTruncate/Chinese": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "TestRepoFork_outside_survey_yes": {"run": "PASS", "test": "PASS", "fix": "PASS"}}
{"TestPRView_shaArg": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{"passed_count": 126, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestRepoFork_in_parent_yes", "TestPRView_urlArg", "TestCompletion_fish", "TestPRView_branchArg", "TestReplaceExcessiveWhitespace", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestCheckForUpdate", "TestIssueView_numberArgWithHash", "TestPRView_previewCurrentBranch", "TestGraphQL", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestPRView_branchWithOwnerArg", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "Test_printError/Cobra_flag_error", "TestCompletion_zsh", "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", "TestPRList_filteringAssigneeLabels", "TestPRView_currentBranch", "TestIssueList_withFlags", "TestExtractContents/Has_front-matter", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "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", "TestGitStatusHelperProcess", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestRepoView_ownerRepo", "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", "TestIssueView_urlArg", "TestIssueCreate_web", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "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", "TestPrCreateHelperProcess", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "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": 126, "failed_count": 3, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestRepoFork_in_parent_yes", "TestPRView_urlArg", "TestCompletion_fish", "TestPRView_branchArg", "TestReplaceExcessiveWhitespace", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestCheckForUpdate", "TestIssueView_numberArgWithHash", "TestPRView_previewCurrentBranch", "TestGraphQL", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestPRView_branchWithOwnerArg", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "Test_printError/Cobra_flag_error", "TestCompletion_zsh", "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", "TestPRList_filteringAssigneeLabels", "TestPRView_currentBranch", "TestIssueList_withFlags", "TestExtractContents/Has_front-matter", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "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", "TestGitStatusHelperProcess", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestRepoView_ownerRepo", "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", "TestIssueView_urlArg", "TestIssueCreate_web", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "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", "TestPrCreateHelperProcess", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "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", "TestPRView_shaArg", "github.com/cli/cli/command"], "skipped_tests": []}
{"passed_count": 127, "failed_count": 1, "skipped_count": 0, "passed_tests": ["TestExtractName/Incomplete_front-matter", "TestPullRequest_ChecksStatus", "TestIssueCreate_webTitleBody", "TestRepoFork_in_parent_yes", "TestPRView_urlArg", "TestCompletion_fish", "TestPRView_branchArg", "TestReplaceExcessiveWhitespace", "TestFind/Multiple_templates", "TestFind", "TestRepoFork_outside_survey_no", "TestPRStatus_reviewsAndChecks", "TestRepoClone", "TestChangelogURL", "TestCheckForUpdate", "TestIssueView_numberArgWithHash", "TestPRView_previewCurrentBranch", "TestGraphQL", "TestPRStatus_blankSlate", "TestTruncate", "TestTruncate/Japanese", "TestPRView_branchWithOwnerArg", "TestCompletion_bash", "TestExtractName/No_front-matter", "TestRepoCreate_org", "Test_printError/Cobra_flag_error", "TestPRView_shaArg", "TestCompletion_zsh", "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", "TestPRList_filteringAssigneeLabels", "TestPRView_currentBranch", "TestIssueList_withFlags", "TestExtractContents/Has_front-matter", "TestPRView_previewCurrentBranchWithEmptyBody", "TestRepoCreate_orgWithTeam", "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", "TestGitStatusHelperProcess", "TestIssueStatus_disabledIssues", "TestIssueCreate", "TestIssueView", "TestTruncate/Korean_filled", "TestGraphQLError", "TestRepoView_ownerRepo", "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", "TestIssueView_urlArg", "TestIssueCreate_web", "TestPRCheckout_existingBranch", "TestIssueCreate_disabledIssues", "TestFind/Template_in_root", "TestCompletion_unsupported", "TestPRCreate", "Test_Translator", "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", "TestPrCreateHelperProcess", "TestRepoFork_outside", "TestForOS/macOS", "TestRepoFork_in_parent", "TestForOS/Linux", "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": []}