last day (16 days later) » 

01:17
5
Q: How can I get the number of collaborators in someone else's Github repository?

J. LeeI tried to use the number of committers who merged the pull request into master branch. However, I cannot consider the reject action. In GitHub, is there a way I can see the number of collaborators within someone else's repository?

Would this work?
it's not an official API endpoint, and it returns HTML, but it's public
 
1 hour later…
02:42
lol, yes, that seems to work (eg shows users who have commit access even if they haven't committed). It would be nice if it wasn't so obviously a hack, but I'm guessing there is no endpoint to get this info as specified, and this, at least returns the info. IDK how you figured it out, but I'm impressed ^_^ I'll award points if you post it.
There's an API endpoint
but it requires an API key
and you have to be a collaborator to even see it
as for the hack link I found
in "Issues", when you click on assignee/author to filter
a dropdown appears with a list of collaborators
that's where I got it
anyway, thanks for the confirmation, I'll post an answer soon
03:21
0
A: How can I get the number of collaborators in someone else's Github repository?

approxiblueThe GitHub API v3 has an endpoint for listing collaborators: GET /repos/:owner/:repo/collaborators To use it, you need to authenticate, and you have to be one of those collaborators or you'd see this: { "message": "Must have push access to view repository collaborators.", "documentation_u...


  last day (16 days later) »