()
| 33 | } |
| 34 | |
| 35 | function getEnvs() { |
| 36 | const { |
| 37 | GITLAB_REPO_OWNER: owner, |
| 38 | GITLAB_REPO_NAME: repo, |
| 39 | GITLAB_REPO_TOKEN: token, |
| 40 | } = process.env; |
| 41 | if (!owner || !repo || !token) { |
| 42 | throw new Error( |
| 43 | 'Please set GITLAB_REPO_OWNER, GITLAB_REPO_NAME, GITLAB_REPO_TOKEN environment variables', |
| 44 | ); |
| 45 | } |
| 46 | return { owner, repo, token }; |
| 47 | } |
| 48 | |
| 49 | async function prepareTestGitLabRepo() { |
| 50 | const { owner, repo, token } = getEnvs(); |
no outgoing calls
no test coverage detected