Skip to content

Commit de34bd4

Browse files
committed
Merge pull request #135 from smwa/master
Adding pagination to getCommits
2 parents 1b1689a + ae7cc41 commit de34bd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

github.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,12 @@
650650
}
651651
params.push("until=" + encodeURIComponent(until));
652652
}
653+
if (options.page) {
654+
params.push("page=" + options.page);
655+
}
656+
if (options.perpage) {
657+
params.push("per_page=" + options.perpage);
658+
}
653659
if (params.length > 0) {
654660
url += "?" + params.join("&");
655661
}

0 commit comments

Comments
 (0)