Skip to content

Commit

Permalink
add list issue labels method
Browse files Browse the repository at this point in the history
  • Loading branch information
panmau authored Apr 7, 2018
1 parent 21a9e30 commit a820399
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ class Issue extends Requestable {
listLabels(options, cb) {
return this._request('GET', `/repos/${this.__repository}/labels`, options, cb);
}

/**
* List the labels of a particular issue
* @see https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
* @param {number} issue - the id of the issue to get comments from
* @param {Object} data ...
* @param {Requestable.callback} [cb] - will receive the comments
* @return {Promise} - the promise for the http request
*/
listIssueLabels(issue, data, cb) {
return this._request('GET', `/repos/${this.__repository}/issues/${issue}/labels`, data, cb);
}

/**
* Get a label
Expand Down

0 comments on commit a820399

Please sign in to comment.