I 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?
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.
The 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...