Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/Issue.js
Original file line number Diff line number Diff line change
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