Skip to content

Commit

Permalink
fix: pagination queries were missing some data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgetgood committed Nov 1, 2017
1 parent 4a8f16f commit 2b7f152
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,19 @@ const participantsQ = authoredWithReactionsQ
.addChild(pagination)
.addChild(authoredWithReactionsQ))

const prsContQ = participantsQ.addChild(reviewQ)

const prsQ = node('pullRequests', {first: 50})
.addChild(pagination)
.addChild(participantsQ
.addChild(reviewQ))
.addChild(prsContQ)

const issuesQ = node('issues', {first: 50})
.addChild(pagination)
.addChild(participantsQ)

const commitCommentQ = node('commitComments', {first: 50})
.addChild(pagination)
.addChild(authoredQ)
.addChild(authoredWithReactionsQ)

/** Returns a query to retrieve all contributors to a repo */
const repository = (repoName, ownerName, before, after) =>
Expand Down Expand Up @@ -251,7 +252,7 @@ const cleanRepo = async (token, result, before, after) => {
type: 'Repository',
key: 'pullRequests',
count: 100,
query: participantsQ
query: prsContQ
})

const issues = await fetchAll({
Expand Down

0 comments on commit 2b7f152

Please sign in to comment.