Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
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
11 changes: 11 additions & 0 deletions 11 lib/Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ class Repository extends Requestable {
return this._request('GET', `/repos/${this.__fullname}/pulls/${number}/files`, null, cb);
}

/**
* List the commits associated with a specific pull request
* @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request
* @param {number|string} number - the PR you wish to fetch
* @param {Requestable.callback} [cb] - will receive the list of commits from the API
* @return {Promise} - the promise for the http request
*/
listPullRequestCommits(number, cb) {
return this._request('GET', '/repos/' + this.__fullname + '/pulls/' + number + '/commits', null, cb);
}

/**
* Compare two branches/commits/repositories
* @see https://developer.github.com/v3/repos/commits/#compare-two-commits
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.