List pull requests
list_pull_requestsRetrieve pull requests from a GitHub repository, filtered by state and target branch, to review open, closed, or all PRs with sorting and paging.
Instructions
List pull requests in a repository. Filter by state and target branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Only PRs targeting this branch, e.g. 'main' | |
| repo | Yes | Repository name, e.g. 'spring-boot' | |
| sort | No | created | |
| limit | No | Number of results to return (1-100, default 20) | |
| owner | Yes | Repository owner (user or organization), e.g. 'spring-projects' | |
| state | No | open | |
| offset | No | Number of results to skip, for paging (default 0) | |
| direction | No | desc |