mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
349 B
349 B
next
| 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.
context.github.paginate(context.github.issues.getAll(context.repo()), res => {
res.data.issues.forEach(issue => {
robot.console.log('Issue: %s', issue.title);
});
});