In a repos that belongs to an organization (as opposed to an individual), collaborators are members of "teams", and teams can have three different kinds of permissions:
- Pull Only
- Push & Pull
- Push, Pull, & Administrative
I can see a list of collaborators on a repos like this:
GET /repos/:owner/:repo/collaborators
...but it does not tell me what type of permissions a collaborator has.
In this particular case, I am one of the collaborators; I do not own the repository.
Is there a way to programmatically determine the type of collaborator permission I have?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…