SourceRepository
Source:
src/Prisma/SourceRepository.ts
A linked source repository for Prisma apps.
Linking creates or renames the repository-owned default branch. Observe
that branch through the Management API; do not declare it again as a
separate Prisma.Branch resource. Use this resource’s outputs to order
downstream databases and apps after the link side effects complete.
Deleting the link does not roll those side effects back: existing branches,
databases, and apps remain in the project.
Linking a Repository
Section titled “Linking a Repository”const repo = yield* Prisma.SourceRepository("repo", { project: project.projectId, providerRepositoryId: 123456789,});const database = yield* Prisma.Database("database", { project: repo.projectId, branchGitName: repo.defaultBranch,});