MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / literalFallback

Function literalFallback

packages/setupWizard/src/gitlab.ts:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 const res = await fetch(url, { headers });
43
44 const literalFallback = (): SearchOption | null => {
45 if (type === 'project') {
46 return PROJECT_PATTERN.test(query) ? { name: query, value: query } : null;
47 }
48 return { name: query, value: query };
49 };
50
51 if (!res.ok) {
52 const warning = res.status === 401

Callers 1

searchGitLabFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected