(ref: RepoRef, branch: string)
| 209 | } |
| 210 | |
| 211 | export function getZipProxyUrl(ref: RepoRef, branch: string): string { |
| 212 | if (ref.provider === "gitlab") { |
| 213 | return `/api/gitlab-zip/${encodeURIComponent(ref.fullPath)}/${branch}`; |
| 214 | } |
| 215 | return `/api/github-zip/${ref.owner}/${ref.repo}/${branch}`; |
| 216 | } |
| 217 | |
| 218 | export function getPublicZipUrl(ref: RepoRef, branch: string): string { |
| 219 | if (ref.provider === "gitlab") { |
no outgoing calls
no test coverage detected