List commits on a pull request
Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Commit
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==
Example:https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Show Child Parameters
Diff Entry
Show Child Parameters
Path Parameters
Query Parameters
List pull requests files
Note: Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Diff Entry
Example:bbcd538c8e72b8c175046e27cc8f907076331401
Example:file1.txt
Allowed values:addedremovedmodifiedrenamedcopiedchangedunchanged
Example:added
Example:103
Example:21
Example:124
Example:https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example:https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example:https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test
Example:file.txt
Path Parameters
Query Parameters
Check if a pull request has been merged
Path Parameters
Response
Response
Response if pull request has been merged
Path Parameters
Merge a pull request
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
Title for the automatic commit message.
Extra detail to append to automatic commit message.
SHA that pull request head must match to allow merge.
Merge method to use. Possible values are merge, squash or rebase. Default is merge.
Allowed values:mergesquashrebase
Response
application/json
Response
if merge was successful
Pull Request Merge Result
Pull Request Merge Result
Path Parameters
Body
List requested reviewers for a pull request
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Pull Request Review Request
Pull Request Review Request
Simple User
Show Child Parameters
Groups of organization members that gives permissions on specified repositories.