(url: string)
| 6 | import { createSearchSelectContext, INPUT_THEME, note, toEnvKey } from './utils.js'; |
| 7 | |
| 8 | function 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 | |
| 17 | type SearchOption = { name: string; value: string }; |
| 18 | type GitLabSearchType = 'group' | 'project' | 'user'; |
no outgoing calls
no test coverage detected