From b73ad06f159db6744a58ae0be6c0a3d8ddd29c54 Mon Sep 17 00:00:00 2001 From: William Martin Date: Tue, 23 May 2023 16:53:16 +0200 Subject: [PATCH] Avoid setting status check rollups when user supplies fields --- pkg/cmd/pr/status/http.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/cmd/pr/status/http.go b/pkg/cmd/pr/status/http.go index 666076c86..755ccf30b 100644 --- a/pkg/cmd/pr/status/http.go +++ b/pkg/cmd/pr/status/http.go @@ -55,13 +55,6 @@ func pullRequestStatus(httpClient *http.Client, repo ghrepo.Interface, options r fields.AddValues(options.Fields) // these are always necessary to find the PR for the current branch fields.AddValues([]string{"isCrossRepository", "headRepositoryOwner", "headRefName"}) - - if options.CheckRunAndStatusContextCountsSupported { - fields.Add("statusCheckRollupWithCountByState") - } else { - fields.Add("statusCheckRollup") - } - gr := api.PullRequestGraphQL(fields.ToSlice()) fragments = fmt.Sprintf("fragment pr on PullRequest{%s}fragment prWithReviews on PullRequest{...pr}", gr) } else {