feature(repository): add listPullRequestReviews by SimonBarendse · Pull Request #454 · github-tools/github
Expand Up
@@ -119,6 +119,17 @@ class Repository extends Requestable {
return this._request('GET', `/repos/${this.__fullname}/pulls/${number}/files`, null, cb);
}
/** * List the reviews of a specific pull request * @see https://developer.github.com/v3/pulls/reviews/ * @param {number|string} number - the PR you wish to fetch * @param {Requestable.callback} [cb] - will receive the list of reviews from the API * @return {Promise} - the promise for the http request */ listPullRequestReviews(number, cb) { return this._request('GET', `/repos/${this.__fullname}/pulls/${number}/reviews`, null, cb); }
/** * Compare two branches/commits/repositories * @see https://developer.github.com/v3/repos/commits/#compare-two-commits Expand Down
/** * List the reviews of a specific pull request * @see https://developer.github.com/v3/pulls/reviews/ * @param {number|string} number - the PR you wish to fetch * @param {Requestable.callback} [cb] - will receive the list of reviews from the API * @return {Promise} - the promise for the http request */ listPullRequestReviews(number, cb) { return this._request('GET', `/repos/${this.__fullname}/pulls/${number}/reviews`, null, cb); }
/** * Compare two branches/commits/repositories * @see https://developer.github.com/v3/repos/commits/#compare-two-commits Expand Down