GraphQL: Difference between assignableUsers and Mentionable Users

Hi,

I am downloading a dataset of GitHub repositories using GraphQL API for my academic research, and it contains two fields assignableUsers and mentionableUsers, but the one-liner description in API doc does not clearly explain what is it mean exactly. Can someone please help me understand the difference between them. 

Since I am interested to know the number of contributors in each repo, how can I get that number or can I use any one of the said attributes for the same? 

Thanks

Hi @ashish-chopra,

Thanks for being here! Here is an attempt at explaining it a little further:

assignableUsers: A list of users that can be assigned to issues in this repository. Essentially all the users that you are able to assign the issue to, meaning all your collaborators.

mentionableUsers: A list of Users that can be mentioned in the context of the repository. All the users that might not be able to collaborate however you can mention or @ on the issue.

Since I am interested to know the number of contributors in each repo, how can I get that number or can I use any one of the said attributes for the same? 

This query on graphQL should show you what you are after:

{
  repository(owner:"Mattamorphic" name:"DataCruncher") {
    collaborators {
      totalCount
    }
  }
}

Try it on the explorer.

Thanks for being here, sharing, and keeping our community awesome!

Hi @andreagriffiths11 ,

Could you expand on ‘mentionableUsers’? and how a user would qualify to be “mentioned in the context of the repository” please?

Similarly to @ashish-chopra, I am trying to gather data on the number of contributors to public repositories.

The graphQL query that you mention above doesn’t seem to work unless its one of my own repositories.

(otherwise the query returns a message “Must have push access to view repository collaborators.”)

Also, my understanding is that contributors are not necessarily collaborators.