()
| 25 | } |
| 26 | |
| 27 | function getCIOrgId(): string | null { |
| 28 | if (process.env.GITHUB_REPOSITORY) { |
| 29 | const org = extractOrg(process.env.GITHUB_REPOSITORY); |
| 30 | if (org) return `github:${org}`; |
| 31 | } |
| 32 | |
| 33 | if (process.env.CI_PROJECT_PATH) { |
| 34 | const org = extractOrg(process.env.CI_PROJECT_PATH); |
| 35 | if (org) return `gitlab:${org}`; |
| 36 | } |
| 37 | |
| 38 | if (process.env.BITBUCKET_REPO_FULL_NAME) { |
| 39 | const org = extractOrg(process.env.BITBUCKET_REPO_FULL_NAME); |
| 40 | if (org) return `bitbucket:${org}`; |
| 41 | } |
| 42 | |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | function getGitOrgId(): string | null { |
| 47 | if (cachedGitOrgId !== undefined) { |
no test coverage detected