master
1fragment DiscussionComment on DiscussionComment {
2 id
3 url
4 author {
5 login
6 }
7 discussion {
8 number
9 repository {
10 nameWithOwner
11 }
12 author {
13 login
14 }
15 }
16 body
17 createdAt
18 updatedAt
19 editor {
20 login
21 }
22 reactionsTotal: reactions {
23 totalCount
24 }
25}
26
27fragment IssueComment on IssueComment {
28 id
29 url
30 author {
31 login
32 }
33 repository {
34 nameWithOwner
35 }
36 issue {
37 number
38 author {
39 login
40 }
41 }
42 body
43 createdAt
44 updatedAt
45 editor {
46 login
47 }
48 reactionsTotal: reactions {
49 totalCount
50 }
51}
52
53query DiscussionCommentsQuery(
54 $login: String!
55 $num: Int = 100
56 $cursor: String
57) {
58 user(login: $login) {
59 repositoryDiscussionComments(first: $num, after: $cursor) {
60 totalCount
61 nodes {
62 ...DiscussionComment
63 }
64 pageInfo {
65 hasNextPage
66 endCursor
67 }
68 }
69 }
70 rateLimit {
71 limit
72 cost
73 remaining
74 resetAt
75 }
76}
77
78query IssueCommentsQuery($login: String!, $num: Int = 100, $cursor: String) {
79 user(login: $login) {
80 issueComments(first: $num, after: $cursor) {
81 totalCount
82 nodes {
83 ...IssueComment
84 }
85 pageInfo {
86 hasNextPage
87 endCursor
88 }
89 }
90 }
91 rateLimit {
92 limit
93 cost
94 remaining
95 resetAt
96 }
97}