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