(host: string, repo: string)
| 23 | } |
| 24 | |
| 25 | export function buildGitLabRepoKey(host: string, repo: string): string { |
| 26 | return `gitlab:${host.toLowerCase()}:${repo.toLowerCase()}`; |
| 27 | } |
| 28 | |
| 29 | export function extractGitLabRepoFromGitPath(path: string): string | null { |
| 30 | const repo = path.replace(GIT_SUFFIXES, "").replace(/\.git$/, "").replace(/^\//, "").replace(/\/$/, ""); |
no outgoing calls
no test coverage detected