MCPcopy
hub / github.com/lingodotdev/lingo.dev / getOrgId

Function getOrgId

packages/cli/src/cli/utils/org-id.ts:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17export function getOrgId(): string | null {
18 const ciOrgId = getCIOrgId();
19 if (ciOrgId) return ciOrgId;
20
21 const gitOrgId = getGitOrgId();
22 if (gitOrgId) return gitOrgId;
23
24 return null;
25}
26
27function getCIOrgId(): string | null {
28 if (process.env.GITHUB_REPOSITORY) {

Callers 2

determineDistinctIdFunction · 0.90
org-id.spec.tsFile · 0.90

Calls 2

getCIOrgIdFunction · 0.70
getGitOrgIdFunction · 0.70

Tested by

no test coverage detected