import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const repositoryConnectionView = await client.repositories.create({ name: 'name', owner: 'owner' });
console.log(repositoryConnectionView.id);{
"id": "<string>",
"name": "<string>",
"owner": "<string>"
}Create a connection to a Github Repository and trigger an initial inspection of the repo’s technical stack and developer environment requirements.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const repositoryConnectionView = await client.repositories.create({ name: 'name', owner: 'owner' });
console.log(repositoryConnectionView.id);{
"id": "<string>",
"name": "<string>",
"owner": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?