Get commits for a pull request
GET
/repos/{owner}/{repo}/pulls/{index}/commits
repository
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/repos///pulls//commits'
Response Response Example
200 - Example 1
[
{
"author": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"commit": {
"author": {
"date": "string",
"email": "user@example.com",
"name": "string"
},
"committer": {
"date": "string",
"email": "user@example.com",
"name": "string"
},
"message": "string",
"tree": {
"created": "2019-08-24T14:15:22Z",
"sha": "string",
"url": "string"
},
"url": "string"
},
"committer": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"created": "2019-08-24T14:15:22Z",
"files": [
{
"filename": "string"
}
],
"html_url": "string",
"parents": [
{
"created": "2019-08-24T14:15:22Z",
"sha": "string",
"url": "string"
}
],
"sha": "string",
"url": "string"
}
]
Request
Path Params
owner
stringÂ
required
repo
stringÂ
required
index
integerÂ
required
Query Params
page
integerÂ
optional
limit
integerÂ
optional
Responses
Modified at 2022-09-10 23:12:52