diff --git a/lib/get-project-id.js b/lib/get-project-id.js index fc43432d..8062acff 100644 --- a/lib/get-project-id.js +++ b/lib/get-project-id.js @@ -1,4 +1,2 @@ export default ({ envCi: { service } = {}, env: { CI_PROJECT_ID } }) => - service === "gitlab" && CI_PROJECT_ID - ? CI_PROJECT_ID - : null; + service === "gitlab" && CI_PROJECT_ID ? CI_PROJECT_ID : null; diff --git a/test/get-project-path.test.js b/test/get-project-path.test.js index 88379aff..23825973 100644 --- a/test/get-project-path.test.js +++ b/test/get-project-path.test.js @@ -24,7 +24,10 @@ test("Parse repo id with context in repo URL", (t) => { test("Parse repo id with context not in repo URL", (t) => { t.is(getProjectPath({ env: {} }, "https://gitlbab.com/context", "https://gitlab.com/owner/repo.git"), "owner/repo"); - t.is(getProjectPath({ env: {} }, "https://gitlab.com/context", "git+ssh://git@gitlab.com/owner/repo.git"), "owner/repo"); + t.is( + getProjectPath({ env: {} }, "https://gitlab.com/context", "git+ssh://git@gitlab.com/owner/repo.git"), + "owner/repo" + ); }); test("Parse repo id with organization and subgroup", (t) => {