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

Function fetchGitLabOnce

apps/web/src/lib/integrations/platforms/gitlab/adapter.ts:58–65  ·  view source on GitHub ↗
(url: string, init?: RequestInit)

Source from the content-addressed store, hash-verified

56}
57
58async function fetchGitLabOnce(url: string, init?: RequestInit): Promise<Response> {
59 const resolvedUrl = await resolveGitLabUrlSafely(url);
60 if (!resolvedUrl.address) {
61 return fetch(url, { ...init, redirect: 'manual' });
62 }
63
64 return fetchGitLabBoundToAddress({ ...resolvedUrl, address: resolvedUrl.address }, init);
65}
66
67function isGitLabRedirect(status: number): boolean {
68 return status === 301 || status === 302 || status === 303 || status === 307 || status === 308;

Callers 1

fetchGitLabFunction · 0.85

Calls 3

resolveGitLabUrlSafelyFunction · 0.90
fetchFunction · 0.50

Tested by

no test coverage detected