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.
(fields []string)
| 464 | // PullRequestGraphQL constructs a GraphQL query fragment for a set of pull request fields. |
| 465 | // It will try to sanitize the fields to just those available on pull request. |
| 466 | func PullRequestGraphQL(fields []string) string { |
| 467 | s := set.NewStringSet() |
| 468 | s.AddValues(fields) |
| 469 | s.RemoveValues(issueOnlyFields) |
| 470 | return IssueGraphQL(s.ToSlice()) |
| 471 | } |
| 472 | |
| 473 | var RepositoryFields = []string{ |
| 474 | "id", |