From f8353049e8a19b26af70b0ffc9e418363f6b384f Mon Sep 17 00:00:00 2001 From: Soyn Date: Thu, 1 Aug 2019 22:38:36 +0800 Subject: [PATCH] Use new env variable to replace old --- source/ci_source/providers/BitbucketPipelines.ts | 2 +- source/ci_source/providers/_tests/_bitbucketPipelines.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ci_source/providers/BitbucketPipelines.ts b/source/ci_source/providers/BitbucketPipelines.ts index a667d7b02..889826ebd 100644 --- a/source/ci_source/providers/BitbucketPipelines.ts +++ b/source/ci_source/providers/BitbucketPipelines.ts @@ -54,7 +54,7 @@ export class BitbucketPipelines implements CISource { } get repoSlug(): string { - return `${this.env.BITBUCKET_REPO_OWNER}/${this.env.BITBUCKET_REPO_SLUG}` + return `${this.env.BITBUCKET_REPO_FULL_NAME}` } get repoURL(): string { diff --git a/source/ci_source/providers/_tests/_bitbucketPipelines.test.ts b/source/ci_source/providers/_tests/_bitbucketPipelines.test.ts index b16861fd8..1c0e850da 100644 --- a/source/ci_source/providers/_tests/_bitbucketPipelines.test.ts +++ b/source/ci_source/providers/_tests/_bitbucketPipelines.test.ts @@ -11,6 +11,7 @@ const correctEnv = { BITBUCKET_BUILD_NUMBER: "5", BITBUCKET_PR_DESTINATION_COMMIT: "91c917d4389b82ec11a0d372b9e5754eb7727e4a", BITBUCKET_REPO_OWNER: "foo", + BITBUCKET_REPO_FULL_NAME: "foo/bar", } describe("being found when looking for CI", () => {