Add support for issue state reason (#6245)

This commit is contained in:
Sam Coe 2022-09-14 12:39:15 +04:00 committed by GitHub
parent e7102f9d84
commit e14d14cef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 450 additions and 192 deletions

View file

@ -308,7 +308,7 @@ func IssueGraphQL(fields []string) string {
// PullRequestGraphQL constructs a GraphQL query fragment for a set of pull request fields.
// It will try to sanitize the fields to just those available on pull request.
func PullRequestGraphQL(fields []string) string {
invalidFields := []string{"isPinned"}
invalidFields := []string{"isPinned", "stateReason"}
s := set.NewStringSet()
s.AddValues(fields)
s.RemoveValues(invalidFields)