Add org public-members call, to complement the full members list#76
Merged
Conversation
Organization members are a paged list in the V3 GitHub API. Previously the code would fetch only the first page of ~30 members and return that. This change switches the return to a PagedIterable<GHUser> so clients can fetch the entire organization's member list.
|
Kohsuke Kawaguchi » github-api #137 SUCCESS |
This fixes an issue introduced with PR hub4j#66 in commit fee02a3 - the `getMembers()` method switched to using paging, but lost the code that populated the users with a full set of values. This commit just applies 'wrapping' to all users returned, so that methods like `user.getCreatedAt()` can be called on returned users without throwing a NullPointerException - the reference to 'root' allows the user objects to populate themselves.
|
Kohsuke Kawaguchi » github-api #138 SUCCESS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://developer.github.com/v3/orgs/members/#public-members-list
This PR sits on top of PRs #66 & #68, which is why it's a 3-commit pull request.