()
| 17 | const { getGitClient } = require('./common'); |
| 18 | |
| 19 | function getEnvs() { |
| 20 | const { |
| 21 | NETLIFY_API_TOKEN: netlifyApiToken, |
| 22 | GITHUB_REPO_TOKEN: githubToken, |
| 23 | GITLAB_REPO_TOKEN: gitlabToken, |
| 24 | NETLIFY_INSTALLATION_ID: installationId, |
| 25 | } = process.env; |
| 26 | if (!netlifyApiToken) { |
| 27 | throw new Error( |
| 28 | 'Please set NETLIFY_API_TOKEN, GITHUB_REPO_TOKEN, GITLAB_REPO_TOKEN, NETLIFY_INSTALLATION_ID environment variables', |
| 29 | ); |
| 30 | } |
| 31 | return { netlifyApiToken, githubToken, gitlabToken, installationId }; |
| 32 | } |
| 33 | |
| 34 | const apiRoot = 'https://api.netlify.com/api/v1/'; |
| 35 |
no outgoing calls
no test coverage detected