(entity: {
repository?: string | null;
owner?: string | null;
branch?: string | null;
})
| 92 | }; |
| 93 | |
| 94 | const 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 | |
| 109 | export type ApplicationWithGithub = InferResultType< |
| 110 | "applications", |
no outgoing calls
no test coverage detected