MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getCustomEndpointLabel

Function getCustomEndpointLabel

src/utils/errors.ts:356–366  ·  view source on GitHub ↗
(baseURL?: string)

Source from the content-addressed store, hash-verified

354}
355
356function getCustomEndpointLabel(baseURL?: string): string | null {
357 if (!baseURL) {
358 return null;
359 }
360
361 try {
362 return new URL(baseURL).host;
363 } catch {
364 return null;
365 }
366}
367
368function getServiceUnavailableMessage(
369 provider: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…