diff --git a/lib/Issue.js b/lib/Issue.js index 07fa2b1a..d7118083 100644 --- a/lib/Issue.js +++ b/lib/Issue.js @@ -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); } /**