Search GitHub pull requests
github_search_pull_requestsSearch GitHub pull requests. Read-only: returns public data and changes nothing. Costs 1 credit per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | Yes | Sort field. Defaults to relevance ("best-match"). | best-match |
| count | Yes | Number of results to return (1–10). Defaults to 10. | |
| draft | No | Filter by draft state. Maps to `draft:`. | |
| order | Yes | Sort direction. Defaults to "desc". | desc |
| query | No | Free-text search terms, matched against the default fields for this search type, e.g. "web framework". | |
| repos | No | Limit to these "owner/name" repositories. Maps to `repo:`. | |
| state | No | Issue/PR state. Maps to `state:`. | |
| author | No | Opened by this user. Maps to `author:`. | |
| closed | No | Filter by closed date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| cursor | No | The previous response's `nextCursor`, to fetch the next page. Omit it for the first page. | |
| labels | No | Require each of these labels. Maps to `label:`. | |
| merged | No | Filter by merge date (only merged PRs). Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| owners | No | Limit to these owners (users or orgs). Maps to `user:`. | |
| review | No | Review status. Maps to `review:`. | |
| created | No | Filter by creation date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| updated | No | Filter by last update date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| assignee | No | Assigned to this user. Maps to `assignee:`. | |
| comments | No | Filter by comment count. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range. | |
| language | No | Language of the containing repo. Maps to `language:`. | |
| mentions | No | Mentioning this user. Maps to `mentions:`. |