@@ -18,12 +18,14 @@ const userInfo = node('user')
18
18
. addChild ( node ( 'name' ) )
19
19
. addChild ( node ( 'url' ) )
20
20
21
+ const reactorSubQ = node ( 'nodes' )
22
+ . addChild ( node ( 'id' ) )
23
+ . addChild ( node ( 'createdAt' ) )
24
+ . addChild ( userInfo )
25
+
21
26
const reactorQ = node ( 'reactions' , { first : 10 } )
22
27
. addChild ( pagination )
23
- . addChild ( node ( 'nodes' )
24
- . addChild ( node ( 'id' ) )
25
- . addChild ( node ( 'createdAt' ) )
26
- . addChild ( userInfo ) )
28
+ . addChild ( reactorSubQ )
27
29
28
30
const authoredQ = node ( 'nodes' )
29
31
. addChild ( node ( 'id' ) )
@@ -315,35 +317,35 @@ const cleanRepo = async (token, result, before, after, verbose) => {
315
317
acc : cc => cc . reactions . nodes ,
316
318
type : 'CommitComment' ,
317
319
key : 'reactions' ,
318
- query : reactorQ
320
+ query : reactorSubQ
319
321
} ) ) . concat ( await depaginateAll ( issueComments , {
320
322
token,
321
323
name : 'issue comment reactions cont' ,
322
324
acc : ic => ic . reactions . nodes ,
323
325
type : 'IssueComment' ,
324
326
key : 'reactions' ,
325
- query : reactorQ
327
+ query : reactorSubQ
326
328
} ) ) . concat ( await depaginateAll ( prComments , {
327
329
token,
328
330
name : 'pr comment reactions cont' ,
329
331
acc : prc => prc . reactions . nodes ,
330
332
type : 'PullRequestComment' ,
331
333
key : 'reactions' ,
332
- query : reactorQ
334
+ query : reactorSubQ
333
335
} ) ) . concat ( await depaginateAll ( issues , {
334
336
token,
335
337
name : 'issue reactions cont' ,
336
338
acc : is => is . reactions . nodes ,
337
339
type : 'Issue' ,
338
340
key : 'reactions' ,
339
- query : participantsQ
341
+ query : reactorSubQ
340
342
} ) ) . concat ( await depaginateAll ( prs , {
341
343
token,
342
344
name : 'pullrequest reactions cont' ,
343
345
acc : pr => pr . reactions . nodes ,
344
346
type : 'PullRequest' ,
345
347
key : 'reactions' ,
346
- query : participantsQ
348
+ query : reactorSubQ
347
349
} ) )
348
350
349
351
return {
0 commit comments