MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isGitLabHost

Function isGitLabHost

packages/worker-utils/src/git-url.ts:28–32  ·  view source on GitHub ↗
(host: string, gitlabInstanceUrl?: string)

Source from the content-addressed store, hash-verified

26}
27
28function isGitLabHost(host: string, gitlabInstanceUrl?: string): boolean {
29 if (host === 'gitlab.com') return true;
30 if (gitlabInstanceUrl && hostnameOf(gitlabInstanceUrl) === host) return true;
31 return false;
32}
33
34/**
35 * Returns true when `url` is a syntactically valid HTTPS or SSH git URL.

Callers 1

Calls 1

hostnameOfFunction · 0.70

Tested by

no test coverage detected