Skip to main content

List repositories for a user

GitHub list repositories for a user tool lists public repositories owned by a specific GitHub user. This is a read-only tool that returns repository metadata with support for filtering, sorting, and pagination.

Prerequisites

  • Your admin must install and configure the GitHub connector, add GitHub tools under Admin ConsolePlatform → 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.

  • The GitHub app must have read permissions to repository metadata.

Supported parameters

ParameterTypeRequiredDescription
UsernameStringYesThe GitHub username whose repositories you want to list.
Repository typeStringNoFilter by repository type (e.g., "all", "owner", "member").
Sort byStringNoField to sort repositories by (e.g., "created", "updated", "pushed", "full_name").
DirectionStringNoSort direction ("asc" for ascending, "desc" for descending). Works with the sort parameter.
Results per pageIntegerNoMaximum number of repositories to return per page (default is 30, maximum is 100).
PageIntegerNoPage number for paginated results (default is 1).

Usage examples

  • "Show me the most recently updated repositories owned by the GitHub user 'octocat'."

  • "List all public repositories for the user 'torvalds'."

Troubleshooting

FAQs