List a repo's pull requests
GET
/repos/{owner}/{repo}/pulls
repository
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/repos///pulls'
Response Response Example
[
{
"assignee": {
"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"
},
"assignees": [
{
"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"
}
],
"base": {
"label": "string",
"ref": "string",
"repo": {
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"archived": true,
"avatar_url": "string",
"clone_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"default_branch": "string",
"default_merge_style": "string",
"description": "string",
"empty": true,
"external_tracker": {
"external_tracker_format": "string",
"external_tracker_style": "string",
"external_tracker_url": "string"
},
"external_wiki": {
"external_wiki_url": "string"
},
"fork": true,
"forks_count": 0,
"full_name": "string",
"has_issues": true,
"has_projects": true,
"has_pull_requests": true,
"has_wiki": true,
"html_url": "string",
"id": 0,
"ignore_whitespace_conflicts": true,
"internal": true,
"internal_tracker": {
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true,
"enable_time_tracker": true
},
"mirror": true,
"mirror_interval": "string",
"name": "string",
"open_issues_count": 0,
"open_pr_counter": 0,
"original_url": "string",
"owner": {
"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"
},
"parent": {},
"permissions": {
"admin": true,
"pull": true,
"push": true
},
"private": true,
"release_counter": 0,
"size": 0,
"ssh_url": "string",
"stars_count": 0,
"template": true,
"updated_at": "2019-08-24T14:15:22Z",
"watchers_count": 0,
"website": "string"
},
"repo_id": 0,
"sha": "string"
},
"body": "string",
"closed_at": "2019-08-24T14:15:22Z",
"comments": 0,
"created_at": "2019-08-24T14:15:22Z",
"diff_url": "string",
"due_date": "2019-08-24T14:15:22Z",
"head": {
"label": "string",
"ref": "string",
"repo": {
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"archived": true,
"avatar_url": "string",
"clone_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"default_branch": "string",
"default_merge_style": "string",
"description": "string",
"empty": true,
"external_tracker": {
"external_tracker_format": "string",
"external_tracker_style": "string",
"external_tracker_url": "string"
},
"external_wiki": {
"external_wiki_url": "string"
},
"fork": true,
"forks_count": 0,
"full_name": "string",
"has_issues": true,
"has_projects": true,
"has_pull_requests": true,
"has_wiki": true,
"html_url": "string",
"id": 0,
"ignore_whitespace_conflicts": true,
"internal": true,
"internal_tracker": {
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true,
"enable_time_tracker": true
},
"mirror": true,
"mirror_interval": "string",
"name": "string",
"open_issues_count": 0,
"open_pr_counter": 0,
"original_url": "string",
"owner": {
"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"
},
"parent": {},
"permissions": {
"admin": true,
"pull": true,
"push": true
},
"private": true,
"release_counter": 0,
"size": 0,
"ssh_url": "string",
"stars_count": 0,
"template": true,
"updated_at": "2019-08-24T14:15:22Z",
"watchers_count": 0,
"website": "string"
},
"repo_id": 0,
"sha": "string"
},
"html_url": "string",
"id": 0,
"is_locked": true,
"labels": [
{
"color": "00aabb",
"description": "string",
"id": 0,
"name": "string",
"url": "string"
}
],
"merge_base": "string",
"merge_commit_sha": "string",
"mergeable": true,
"merged": true,
"merged_at": "2019-08-24T14:15:22Z",
"merged_by": {
"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"
},
"milestone": {
"closed_at": "2019-08-24T14:15:22Z",
"closed_issues": 0,
"created_at": "2019-08-24T14:15:22Z",
"description": "string",
"due_on": "2019-08-24T14:15:22Z",
"id": 0,
"open_issues": 0,
"state": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z"
},
"number": 0,
"patch_url": "string",
"state": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"url": "string",
"user": {
"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"
}
}
]
Request
Path Params
owner
stringÂ
required
repo
stringÂ
required
Query Params
state
stringÂ
optional
sort
stringÂ
optional
milestone
integerÂ
optional
labels
array[string]
optional
page
integerÂ
optional
limit
integerÂ
optional