add options param to `listIssueComments` to get pagination result by bambooom · Pull Request #399 · github-tools/github

Expand Up @@ -59,11 +59,12 @@ class Issue extends Requestable { * List comments on an issue * @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue * @param {number} issue - the id of the issue to get comments from * @param {Object} options - pagination options, per_page & page * @param {Requestable.callback} [cb] - will receive the comments * @return {Promise} - the promise for the http request */ listIssueComments(issue, cb) { return this._request('GET', `/repos/${this.__repository}/issues/${issue}/comments`, null, cb); listIssueComments(issue, options, cb) { return this._request('GET', `/repos/${this.__repository}/issues/${issue}/comments`, options, cb); }
/** Expand Down