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

Function getGitLabIntegration

apps/web/src/lib/integrations/gitlab-service.ts:68–81  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

66 */
67export function normalizeInstanceUrl(url?: string): string {
68 return normalizeGitLabInstanceUrl(url || DEFAULT_GITLAB_INSTANCE_URL);
69}
70
71/**
72 * Returns true if the GitLab instance URL has changed between
73 * the existing integration and the new connection.
74 */
75export function instanceUrlChanged(existingUrl: string | undefined, newUrl: string): boolean {
76 const normalizedNewUrl = normalizeInstanceUrl(newUrl);
77 try {
78 return normalizeInstanceUrl(existingUrl) !== normalizedNewUrl;
79 } catch {
80 return true;
81 }
82}
83
84function readOptionalMetadataString(

Callers 3

getGitLabTokenForUserFunction · 0.90
connectWithPATFunction · 0.85

Calls 1

limitMethod · 0.65

Tested by

no test coverage detected