MCPcopy
hub / github.com/Dokploy/dokploy / getErrorCloneRequirements

Function getErrorCloneRequirements

packages/server/src/utils/providers/github.ts:94–107  ·  view source on GitHub ↗
(entity: {
	repository?: string | null;
	owner?: string | null;
	branch?: string | null;
})

Source from the content-addressed store, hash-verified

92};
93
94const getErrorCloneRequirements = (entity: {
95 repository?: string | null;
96 owner?: string | null;
97 branch?: string | null;
98}) => {
99 const reasons: string[] = [];
100 const { repository, owner, branch } = entity;
101
102 if (!repository) reasons.push("1. Repository not assigned.");
103 if (!owner) reasons.push("2. Owner not specified.");
104 if (!branch) reasons.push("3. Branch not defined.");
105
106 return reasons;
107};
108
109export type ApplicationWithGithub = InferResultType<
110 "applications",

Callers 1

cloneGithubRepositoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected