MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getEnvs

Function getEnvs

cypress/plugins/gitGateway.js:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const { getGitClient } = require('./common');
18
19function 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
34const apiRoot = 'https://api.netlify.com/api/v1/';
35

Callers 3

gitGateway.jsFile · 0.70
setupGitGatewayFunction · 0.70
teardownGitGatewayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected