Skip to content

Add org public-members call, to complement the full members list#76

Merged
kohsuke merged 4 commits into
hub4j:masterfrom
rtyley:org-public-membership
Mar 28, 2014
Merged

Add org public-members call, to complement the full members list#76
kohsuke merged 4 commits into
hub4j:masterfrom
rtyley:org-public-membership

Conversation

@rtyley

@rtyley rtyley commented Mar 13, 2014

Copy link
Copy Markdown
Contributor

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.

ryankennedy and others added 3 commits January 22, 2014 09:56
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.
@buildhive

Copy link
Copy Markdown

Kohsuke Kawaguchi » github-api #137 SUCCESS
This pull request looks good
(what's this?)

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.
@buildhive

Copy link
Copy Markdown

Kohsuke Kawaguchi » github-api #138 SUCCESS
This pull request looks good
(what's this?)

@kohsuke kohsuke merged commit d29ea97 into hub4j:master Mar 28, 2014
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

Successfully merging this pull request may close these issues.

5 participants