Skip to content

Commit

Permalink
Merge pull request #1 from maracuja-juice/patch-1
Browse files Browse the repository at this point in the history
add list issue labels method
  • Loading branch information
bluzi authored Apr 13, 2018
2 parents 21a9e30 + a820399 commit 5fa34a5
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 5fa34a5

Please sign in to comment.