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

Function getEnvs

cypress/plugins/gitlab.js:35–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function 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
49async function prepareTestGitLabRepo() {
50 const { owner, repo, token } = getEnvs();

Callers 5

prepareTestGitLabRepoFunction · 0.70
getUserFunction · 0.70
deleteRepositoriesFunction · 0.70
resetOriginRepoFunction · 0.70
teardownGitLabTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected