github_pulls_list
Get pull requests for a GitHub repository, filtering by state (open/closed/all), branch, sort order, and pagination.
Instructions
List pull requests
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | owner | |
| repo | Yes | repo | |
| state | No | Either `open`, `closed`, or `all` to filter by state. | |
| head | No | Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`. | |
| base | No | Filter pulls by base branch name. Example: `gh-pages`. | |
| sort | No | What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month. | |
| direction | No | The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. | |
| per_page | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| page | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." |