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

API Github - list contributors

Solved! Go to Solution.

Hi,

 

Currently, when hitting the Github's API to get the list of contributors for a specific repo:

GET /repos/:owner/:repo/collaborators

 

The list of collaborators I get includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. ( as stated in the documentation here )

I would like to know if there's a way to get, via the API, only the collaborators specified in the Settings > Collaborators & teams > Collaborators box?

 

Thanks.

1 Reply
Highlighted
Solution
Community Manager
Message 2 of 2

Re: API Github - list contributors

Hi @abezard,

 

Thank you for being here! You can pass a parameter called `affiliation` with value `outside` to get the collaborators you’ve added that aren’t part of the organization the repo belongs to. Here is more info: https://developer.github.com/v3/repos/collaborators/#parameters. I hope that helps!

 

Best,

Andrea


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!