* Normalizes the host config value via the shared GitLab host normalizer: * trims, strips any protocol prefix and trailing slashes, rejects structurally * unsafe hosts (userinfo, whitespace, embedded path), and falls back to * gitlab.com when empty. Shared with the GitLab tools and webhook provid
(rawHost: unknown)
| 184 | * @throws {UnsafeGitLabHostError} when a non-empty host is structurally unsafe. |
| 185 | */ |
| 186 | function normalizeHost(rawHost: unknown): string { |
| 187 | return normalizeGitLabHost(rawHost) |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Builds the REST API v4 base URL for the configured host. |
no test coverage detected