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

Function getCustomEndpointLabel

out/cli.cjs:74509–74518  ·  view source on GitHub ↗
(baseURL)

Source from the content-addressed store, hash-verified

74507 }
74508 const status = error.status || error.response?.status;
74509 if (status && status >= 500 && status < 600) {
74510 return true;
74511 }
74512 }
74513 return false;
74514}
74515function getCustomEndpointLabel(baseURL) {
74516 if (!baseURL) {
74517 return null;
74518 }
74519 try {
74520 return new URL(baseURL).host;
74521 } catch {

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…