Skip to content

Commit

Permalink
fix(jetbrainsSpace): fix build error with node 12 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 committed Jul 8, 2022
1 parent 5bad207 commit 1f323c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/jetbrains-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ module.exports = {
return Boolean(env.JB_SPACE_EXECUTION_NUMBER);
},
configuration({env}) {
const projectKey = env.JB_SPACE_PROJECT_KEY?.toLowerCase();
const projectKey = env.JB_SPACE_PROJECT_KEY;
const repositoryName = env.JB_SPACE_GIT_REPOSITORY_NAME;
return {
name: 'JetBrains Space',
service: 'jetbrainsSpace',
commit: env.JB_SPACE_GIT_REVISION,
build: env.JB_SPACE_EXECUTION_NUMBER,
branch: parseBranch(env.JB_SPACE_GIT_BRANCH),
slug: projectKey && repositoryName ? `${projectKey}/${repositoryName}` : undefined,
slug: projectKey && repositoryName ? `${projectKey.toLowerCase()}/${repositoryName}` : undefined,
};
},
};

0 comments on commit 1f323c1

Please sign in to comment.