(fullPath: string)
| 3 | let cachedGitOrgId: string | null | undefined = undefined; |
| 4 | |
| 5 | function 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 | |
| 13 | export function clearOrgIdCache(): void { |
| 14 | cachedGitOrgId = undefined; |
no outgoing calls
no test coverage detected