Are pullRequestContributions limited?

I’m trying to compile a list of all public repositories that I’ve contributed via a pull request to. However it seems like it’s only possible to find nodes which aren’t older than a year – even when I use the cursor pagination.

Here’s the query I’m using:

query ($after: String) {
  viewer {
    login
    contributionsCollection {
      pullRequestContributions(first: 100, after: $after) {
        totalCount
        edges {
          cursor
          node {
            pullRequest {
              id
              title
              url
              state
              baseRepository {
                isPrivate
                name
                url
                description
                owner {
                  login
                }
              }
            }
          }
        }
      }
    }
  }
}

Thanks!

Yes, the contributionsCollection field defaults to a maximum of a year old if you don’t specify a different date range. See the from parameter documentation.

Let us know if you have more questions.

3 Likes