Open cirosantilli opened 9 years ago
@BartMassey please use the new +1 button feature instead of comments to avoid notifying people and have an automated upvote count ;-)
I did both, sorry. Since the issue hasn't been touched since 2015 and seems important, I thought it was worth seeing if anyone was still paying attention. Sounds like they are.
- owner and other collaborators can see from the API, e.g. api.github.com/repos/plasticboy/vim-markdown/collaborators?access_token=COLLABORATOR_TOKEN
In case this saves someone the time, the same information can be gathered via the GraphQL API with the following query:
query {
repository(owner: "plasticboy", name: "vim-markdown") {
collaborators(first: 100, affiliation: OUTSIDE) {
edges {
node {
login
}
}
}
}
}
Here's a link to run this query on the GraphQL Explorer. Note that, in accordance with what has been said above, it produces a "Must have push access to view repository collaborators."
error for non-collaborators.
References/documentation: collaborators on REST API v3; collaborators on GraphQL API v4.
This information is already leaked whenever the person comments on an issue and "Collaborator" shows on their username, so I don't think it matters.
IIUC the current situation is:
At the very least, allow other collaborators to see each other from the web UI since the information is already available on the API.
Use cases: