MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / buildGitLabRepoKey

Function buildGitLabRepoKey

src/gitlab-egress.ts:25–27  ·  view source on GitHub ↗
(host: string, repo: string)

Source from the content-addressed store, hash-verified

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

Callers 3

remoteRepoKeyFunction · 0.90
gitLabRepoKeyFromRemoteFunction · 0.90
classifyGitLabSmartHttpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected