Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

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

 

1 Reply
Community Manager
Message 2 of 2

Re: GraphQL: Difference between assignableUsers and Mentionable Users

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!

 


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!