List pull requests
Lists pull requests in a public repository with state, branch, sorting, and pagination filters.
GET
/github/repos/{owner}/{repo}/pullsNo authentication requiredPath parameters2
| Name | Type | Description |
|---|---|---|
owner* | string | The repository owner login. The value is case-insensitive. |
repo* | string | The repository name without the .git suffix. The value is case-insensitive. |
Query parameters7
| Name | Type | Description |
|---|---|---|
state | string | Filter by state. "open""closed""all"Default: |
head | string | Head account and branch, such as user:feature. |
base | string | The target branch name. |
sort | string | Sort field. "created""updated""popularity""long-running"Default: |
direction | string | Sort direction. "asc""desc" |
per_page | integer | The number of results to return per page. Default: Minimum: 1Maximum: 100 |
page | integer | The page number to fetch. Default: Minimum: 1 |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaGithubPullRequest[]
Array itemGithubIssue & object
The original GitHub response.