Skip to content

Random-accessing via GraphQL/REST? #24736

Discussion options

You must be logged in to vote

Try this query:

query { 
  repository(owner: "somewhere", name: "repo") {
  	pullRequests(first: 100, states: MERGED) {
      totalCount
      pageInfo { endCursor, hasNextPage }
      nodes {
          number
          author {
            login
          }
          additions
          deletions
       }
    }
  }
}

You can then use endCursor to query the next page.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment