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

How can I get ALL public repos I have contributed to?

Solved! Go to Solution.

I tried using this GraphQL, but it only returns about 30 results with no further pagination:

{
  viewer {
    repositoriesContributedTo(first: 100, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) {
      nodes {
        nameWithOwner
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}

I have checked that several normal, public contributions are missing.  I expect a much longer list.

1 Reply
Solution
Community Manager
Message 2 of 2

Re: How can I get ALL public repos I have contributed to?

The documentation of that connection states that it is: "A list of repositories that the user recently contributed to." (emphasis mine) If you want a list of everything, you would have to use the search functionality and create the list of public repositories from the various results types you retrieved from the search APIs.

 

I hope that helps!