SearchRepositories
POST/gitpod.v1.RunnerService/SearchRepositories
Searches for repositories across all authenticated SCM hosts.
Use this method to:
- List available repositories
- Search repositories by name or content
- Discover repositories for environment creation
Returns repositories from all authenticated SCM hosts in natural sort order. If no repositories are found, returns an empty list.
Examples
-
List all repositories:
Returns up to 25 repositories from all authenticated hosts.
runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" -
Search repositories:
Searches for repositories matching the query across all hosts.
runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" searchString: "my-project" limit: 10
SearchRepositories
curl https://app.gitpod.io/api/gitpod.v1.RunnerService/SearchRepositories \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{}'{
"lastPage": 0,
"pagination": {
"nextToken": "nextToken"
},
"repositories": [
{
"name": "name",
"url": "url"
}
]
}Returns Examples
{
"lastPage": 0,
"pagination": {
"nextToken": "nextToken"
},
"repositories": [
{
"name": "name",
"url": "url"
}
]
}