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

Using pagination when getting Pull Requests from a repository #15

Merged
merged 1 commit into from
Aug 28, 2012

Conversation

athieriot
Copy link
Contributor

Hi,

As Pull Request API is paginate in the Github API v3, I propose to modify the GHPullRequest getter to return a PagedIterator instead of a simple List.

I didn't knew if I need to maintain the List signature so, instead, I write a new method in PagedIterator that allow to fetch all items at once.

I'll be happy if you can look a it :)

Thanks

Aurélien

@buildhive
Copy link

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

@kohsuke kohsuke merged commit 9fd34ae into hub4j:master Aug 28, 2012
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.

3 participants