Skip to content

Commit 88f6913

Browse files
feedback
1 parent 6867281 commit 88f6913

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/web/src/actions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,14 @@ export const experimental_addGithubRepositoryByUrl = async (repositoryUrl: strin
875875
} satisfies ServiceError;
876876
}
877877

878+
if (githubRepo.private) {
879+
return {
880+
statusCode: StatusCodes.BAD_REQUEST,
881+
errorCode: ErrorCode.INVALID_REQUEST_BODY,
882+
message: "Only public repositories can be added.",
883+
} satisfies ServiceError;
884+
}
885+
878886
// Check if this repository is already connected using the external_id
879887
const existingRepo = await prisma.repo.findFirst({
880888
where: {

0 commit comments

Comments
 (0)