Search repositories
GitHub search repositories tool searches GitHub repositories that match a query string. This is a read-only tool that returns repository metadata with support for sorting, filtering, and pagination.
Prerequisites
-
Your admin must install and configure the GitHub connector, add GitHub tools under Admin Console → Platform → Tools, and enable this tool.
-
A GitHub app must be installed on the relevant organization(s) and linked to the correct GitHub connector in the Glean admin console.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Search query | String | Text or structured query to find matching repositories (e.g., language:python, org:facebook, topic:react). |
| Sort by | String | Field to sort results by (e.g., stars, forks, updated). |
| Order | String | Result order: asc (ascending) or desc (descending). |
| Page | Integer | Page number of results to return for pagination. |
| Results per page | Integer | Number of results to return per page (maximum 100). |
Usage examples
-
"Find the most popular Python repositories on GitHub".
-
"Show me React repositories from Facebook".
-
"Find recently updated TypeScript projects with more than 100 stars".