List repositories for a user
GitHub list repositories for a user action lists public repositories owned by a specific GitHub user. This is a read-only action that returns repository metadata with support for filtering, sorting, and pagination.
Prerequisites
-
Your admin must install and configure the GitHub connector, add the GitHub actions pack under Admin > Actions, and enable this action.
-
A GitHub app must be installed on the relevant organization(s) and linked to the correct GitHub datasource in the Glean admin console.
-
The GitHub app must have read permissions to repository metadata.
Supported parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Username | String | Yes | The GitHub username whose repositories you want to list. |
| Repository type | String | No | Filter by repository type (e.g., "all", "owner", "member"). |
| Sort by | String | No | Field to sort repositories by (e.g., "created", "updated", "pushed", "full_name"). |
| Direction | String | No | Sort direction ("asc" for ascending, "desc" for descending). Works with the sort parameter. |
| Results per page | Integer | No | Maximum number of repositories to return per page (default is 30, maximum is 100). |
| Page | Integer | No | Page 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'."