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

Function gitlabApiBase

packages/setupWizard/src/gitlab.ts:8–15  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

6import { createSearchSelectContext, INPUT_THEME, note, toEnvKey } from './utils.js';
7
8function gitlabApiBase(url: string): string {
9 try {
10 const u = new URL(url);
11 return `${u.protocol}//${u.host}/api/v4`;
12 } catch {
13 return 'https://gitlab.com/api/v4';
14 }
15}
16
17type SearchOption = { name: string; value: string };
18type GitLabSearchType = 'group' | 'project' | 'user';

Callers 1

collectGitLabConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected