Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Are pullRequestContributions limited?

Solved! Go to Solution.

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!

1 Reply
Solution
Community Manager
Message 2 of 2

Re: Are pullRequestContributions limited?

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.