We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6867281 commit 88f6913Copy full SHA for 88f6913
packages/web/src/actions.ts
@@ -875,6 +875,14 @@ export const experimental_addGithubRepositoryByUrl = async (repositoryUrl: strin
875
} satisfies ServiceError;
876
}
877
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
+
886
// Check if this repository is already connected using the external_id
887
const existingRepo = await prisma.repo.findFirst({
888
where: {
0 commit comments