Gets a list of enabled repositories for the organization
import Tembo from '@tembo-io/sdk';
const client = new Tembo({
apiKey: 'My API Key',
});
const repositories = await client.repository.list();
console.log(repositories.codeRepositories);{
"codeRepositories": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-awesome-project",
"enabledAt": "2023-12-01T10:30:00.000Z",
"createdAt": "2023-12-01T09:15:00.000Z",
"updatedAt": "2023-12-01T11:45:00.000Z",
"organizationId": "456e7890-e89b-12d3-a456-426614174001",
"url": "https://github.com/username/my-awesome-project",
"branch": "main",
"description": "An awesome web application built with React",
"integration": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "github",
"name": "GitHub Integration",
"configuration": {}
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
Use this file to discover all available pages before exploring further.
Successfully retrieved list of enabled code repositories
Array of enabled code repositories for the organization
Show child attributes
Was this page helpful?
import Tembo from '@tembo-io/sdk';
const client = new Tembo({
apiKey: 'My API Key',
});
const repositories = await client.repository.list();
console.log(repositories.codeRepositories);{
"codeRepositories": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-awesome-project",
"enabledAt": "2023-12-01T10:30:00.000Z",
"createdAt": "2023-12-01T09:15:00.000Z",
"updatedAt": "2023-12-01T11:45:00.000Z",
"organizationId": "456e7890-e89b-12d3-a456-426614174001",
"url": "https://github.com/username/my-awesome-project",
"branch": "main",
"description": "An awesome web application built with React",
"integration": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "github",
"name": "GitHub Integration",
"configuration": {}
}
}
]
}