fayland/perl-net-github — pull request #35 by ioanrogers (2012-05-03 04:12:23+00:00)
Title: Support for pagination

Hi,

This commit provides support for pagination (http://developer.github.com/v3/#pagination).

I didn't add support for 'page_size', as it's not important for me and the default seems fine.

Currently, you can use it like this:

```perl
my @issues = $gh->issue->repos_issues;
while ($gh->issue->has_next_url) {
push @issues, $gh->issue->query($gh->issue->next_url);
}
```

You need to be careful about mixing calls within the same module, i.e. you need to get all the issues before trying to get their comments.

If this patch is acceptable, I'll also update the docs.

Thanks!