()
| 31 | } |
| 32 | |
| 33 | export function getGitHubRepo() { |
| 34 | const repository = process.env.GITHUB_REPOSITORY; |
| 35 | |
| 36 | if (!repository) { |
| 37 | throw new Error("GITHUB_REPOSITORY environment variable is missing."); |
| 38 | } |
| 39 | |
| 40 | const [_, repo] = repository.split("/"); |
| 41 | |
| 42 | return repo; |
| 43 | } |
| 44 | |
| 45 | export function getGitHubOwner() { |
| 46 | const repository = process.env.GITHUB_REPOSITORY; |
no outgoing calls
no test coverage detected