MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / extractOrg

Function extractOrg

packages/cli/src/cli/utils/org-id.ts:5–11  ·  view source on GitHub ↗
(fullPath: string)

Source from the content-addressed store, hash-verified

3let cachedGitOrgId: string | null | undefined = undefined;
4
5function extractOrg(fullPath: string): string | null {
6 const parts = fullPath.split("/");
7 if (parts.length < 1) {
8 return null;
9 }
10 return parts[0];
11}
12
13export function clearOrgIdCache(): void {
14 cachedGitOrgId = undefined;

Callers 2

getCIOrgIdFunction · 0.70
parseGitUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected