fix: remove giteaPathNamespace

This commit is contained in:
Jason Parks
2025-03-24 01:53:00 -06:00
parent 5d5913f39d
commit 39f4a35cc8
7 changed files with 1 additions and 24 deletions

View File

@@ -163,7 +163,6 @@ export const applications = pgTable("application", {
giteaOwner: text("giteaOwner"),
giteaBranch: text("giteaBranch"),
giteaBuildPath: text("giteaBuildPath").default("/"),
giteaPathNamespace: text("giteaPathNamespace"),
// Bitbucket
bitbucketRepository: text("bitbucketRepository"),
bitbucketOwner: text("bitbucketOwner"),
@@ -510,7 +509,6 @@ export const apiSaveGiteaProvider = createSchema
giteaRepository: true,
giteaId: true,
giteaProjectId: true,
giteaPathNamespace: true,
watchPaths: true,
})
.required();

View File

@@ -17,16 +17,14 @@ export const getErrorCloneRequirements = (entity: {
giteaRepository?: string | null;
giteaOwner?: string | null;
giteaBranch?: string | null;
giteaPathNamespace?: string | null;
}) => {
const reasons: string[] = [];
const { giteaBranch, giteaOwner, giteaRepository, giteaPathNamespace } =
const { giteaBranch, giteaOwner, giteaRepository } =
entity;
if (!giteaRepository) reasons.push("1. Repository not assigned.");
if (!giteaOwner) reasons.push("2. Owner not specified.");
if (!giteaBranch) reasons.push("3. Branch not defined.");
if (!giteaPathNamespace) reasons.push("4. Path namespace not defined.");
return reasons;
};