GitHub Search Issues And Pull Requests
GitHubSearchIssuesTool · Tools · Connections
Search issues and pull requests across repositories with GitHub's advanced search syntax, such as `repo:owner/name is:pr is:open review-requested:@me` or `org:acme is:issue label:bug crash`. Read-only. Include is:issue or is:pr: GitHub refuses a query naming neither for some connections, and allows about 30 searches a minute. Returns GitHub's items with count, limit, offset, has_more, next_offset, and what GitHub reports about every match: total_count, incomplete_results (the search timed out before looking everywhere), result_limit (1000), and results_capped. GitHub serves only the first 1000 matches, so when results_capped is true, running out of pages does not mean every match was seen; narrow the query to reach the rest.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Most items to return: 1-100, default 20. A result may hold fewer to stay within its size budget; continue from `next_offset`. |
offset | integer | No | Items to skip, counted after any filter. Pass the previous result's `next_offset` to continue. |
order | any | No | Sort direction when `sort` is set; desc by default. |
query | string | Yes | GitHub search query with qualifiers, such as `repo:owner/name is:pr is:open review-requested:@me`. |
sort | any | No | Sort key; best match when absent. |