You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across a need for this behavior, i.e., checking if a single user was already a Collaborator on a Repository, so I don't have to fetch the entire list each time (or deal with caching it).
It seems fairly straightforward to implement, as the API returns either a 204 (user is a collaborator) or 404 (they're not), and is similar to the hasAssignee code.
I can submit a pull request to implement this if desired.
Is the following API supported?
GET /repos/:owner/:repo/collaborators/:username
https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
Also does collaborator just imply a user that has write access?
I looked at the code but i'm not seeing it in the GHRepository.java file. Wanted to verify if I was just not seeing it?
Thanks,
Derek
The text was updated successfully, but these errors were encountered: