()
| 15 | } |
| 16 | |
| 17 | export 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 | |
| 27 | function getCIOrgId(): string | null { |
| 28 | if (process.env.GITHUB_REPOSITORY) { |
no test coverage detected