Files
probot.github.io/docs/pagination.md
Brandon Keepers 6ac0fd24c0 Tweak doc h1
2017-08-07 13:21:53 -05:00

16 lines
349 B
Markdown

---
next: docs/deployment.md
---
# Pagination
Many GitHub API endpoints are paginated. The `github.paginate` method can be used to get each page of the results.
```js
context.github.paginate(context.github.issues.getAll(context.repo()), res => {
res.data.issues.forEach(issue => {
robot.console.log('Issue: %s', issue.title);
});
});
```