Response
Successfully retrieved list of enabled code repositories
Array of enabled code 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",
"url": "https://github.com/username/my-awesome-project",
"branch": "main",
"description": "An awesome web application built with React",
"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",
"integration": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "github",
"name": "GitHub Integration",
"configuration": {}
}
}
]
}
Gets a list of enabled code 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",
"url": "https://github.com/username/my-awesome-project",
"branch": "main",
"description": "An awesome web application built with React",
"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",
"integration": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "github",
"name": "GitHub Integration",
"configuration": {}
}
}
]
}
Successfully retrieved list of enabled code repositories
Array of enabled code repositories for the organization
Show child attributes
Was this page helpful?