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

List repositories for repos with "outside" affiliation

I'm using the Github REST API v3 and am trying to list all of the repositories that my logged in user (via OAuth) has access to.

 

My logged in user has a repository where my affiliation is an "outside collaborator" but I'm not sure how to query my user's information in order to display information for that repository.

 

Querying the "List your repositories" API (GET /user/repos) doesn't return the repository in question. Querying the "List your organizations" API (GET /user/orgs) doesn't return any results either to use with the "List organization repositories" API (GET /orgs/:org/repos).

 

Is there any other way to query repositories that I am an "outside collaborator"? Perhaps there's an "affiliation" string that isn't listed in the docs?