Avoid setting status check rollups when user supplies fields
This commit is contained in:
parent
04ecac9a6f
commit
b73ad06f15
1 changed files with 0 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue