Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github4s not returning complete information about members of an organization #568

Open
muunaar opened this issue Nov 6, 2020 · 3 comments

Comments

@muunaar
Copy link

muunaar commented Nov 6, 2020

I'm working with Github4s in order to retrieve the list of members of an organization name given.
I'm using v3
I'm getting the result as follows :
User(1550710,tues,https://avatars3.githubusercontent.com/u/1550710?v=4,https://github.com/tues,None,None,None,None,None,None,Some(https://api.github.com/users/tues/followers),Some(https://api.github.com/users/tues/following{/other_user}),User,None,None,None)

Can someone enlighten me

@BenFradet
Copy link
Contributor

Which part needs enlightening?

@muunaar
Copy link
Author

muunaar commented Nov 16, 2020

The Organization API, the first function that consists of returning the members of the organization with their related contributions.
If I did understand, the getmembers should return the members of the organization with their associated number of contributions
When I use it, the returned User(..) consists of plenty of None value for the contribution fields. Therefore, the developer should use the repository API as well as the Organization API to get the needed data.

@sloshy
Copy link
Contributor

sloshy commented Feb 4, 2021

@muunaar That is correct. The GitHub API does not specify the contributions field as something that can be returned from this endpoint, but it shares a lot of overlap so we are reusing a common case class. Not all of the fields will be populated by every API request so it might seem misleading from the usage point of the library, but it is consistent with the official API.

https://docs.github.com/en/rest/reference/orgs#list-organization-members

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants