| 1 | fragment CommentParts on Comment { |
| 2 | bodyHTML |
| 3 | author { |
| 4 | login |
| 5 | avatarUrl |
| 6 | } |
| 7 | createdAt |
| 8 | } |
| 9 | |
| 10 | fragment ReactionParts on Reactable { |
| 11 | reactions(first: 100) { |
| 12 | nodes { |
| 13 | content |
| 14 | user { |
| 15 | login |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | query PullRequestCommentsQuery($url: URI!, $numToFetch: Int!) { |
| 22 | resource(url: $url) { |
| 23 | __typename |
| 24 | ... on PullRequest { |
| 25 | comments(first: $numToFetch) { |
| 26 | totalCount |
| 27 | nodes { |
| 28 | ...CommentParts |
| 29 | ...ReactionParts |
| 30 | } |
| 31 | } |
| 32 | reviews(first: $numToFetch) { |
| 33 | nodes { |
| 34 | comments(first: 50) { |
| 35 | nodes { |
| 36 | ...CommentParts |
| 37 | ...ReactionParts |
| 38 | line |
| 39 | path |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |