1
0
Fork 0
mirror of synced 2024-09-06 12:51:43 +12:00
appwrite/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md
2024-02-25 00:34:42 +13:00

481 B

import { Client, Vcs } from "@appwrite.io/console";

const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID

const vcs = new Vcs(client);

const result = await vcs.createRepositoryDetection( '<INSTALLATION_ID>', // installationId '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) );

console.log(response);