Skip to main content

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​

ParameterTypeDescription
Search queryStringText or structured query to find matching repositories (e.g., language:python, org:facebook, topic:react).
Sort byStringField to sort results by (e.g., stars, forks, updated).
OrderStringResult order: asc (ascending) or desc (descending).
PageIntegerPage number of results to return for pagination.
Results per pageIntegerNumber 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".

Troubleshooting​

FAQs​