isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

Allow everyone to list repository collaborators from the web UI #444

Open cirosantilli opened 9 years ago

cirosantilli commented 9 years ago

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:

cirosantilli commented 7 years ago

@BartMassey please use the new +1 button feature instead of comments to avoid notifying people and have an automated upvote count ;-)

BartMassey commented 7 years ago

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.

waldyrious commented 6 years ago
  • 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.