Skip to content

Commit ae7cc41

Browse files
committed
Adding pagination to getCommits
1 parent a16d2f3 commit ae7cc41

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
@@ -640,6 +640,12 @@
640640
}
641641
params.push("until=" + encodeURIComponent(until));
642642
}
643+
if (options.page) {
644+
params.push("page=" + options.page);
645+
}
646+
if (options.perpage) {
647+
params.push("per_page=" + options.perpage);
648+
}
643649
if (params.length > 0) {
644650
url += "?" + params.join("&");
645651
}

0 commit comments

Comments
 (0)