Add support for issue state reason (#6245)
This commit is contained in:
parent
e7102f9d84
commit
e14d14cef2
14 changed files with 450 additions and 192 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue