list_pull_requests
List pull requests in a repository with filtering by state and sorting options. Returns detailed PR objects including head, base, and mergeable status.
Instructions
List pull requests in a repository, optionally filtered by state.
Returns Gitea PullRequest objects (not Issue-style — the PR endpoint
returns richer head/base/mergeable info than the issues endpoint does
even when issues are filtered to type=pulls).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| state | No | Filter by state: 'open', 'closed', or 'all' | open |
| sort | No | Sort order: 'oldest', 'newest', 'leastupdate', 'mostupdate', 'leastcomment', 'mostcomment', 'priority'. Omit for Gitea's default. | |
| page | No | Page number (1-indexed) | |
| limit | No | Items per page (max 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |