Skip to content

Commit

Permalink
Merged by Peril
Browse files Browse the repository at this point in the history
Use new env variable to replace old
  • Loading branch information
peril-staging[bot] authored Aug 2, 2019
2 parents 73d1439 + 7688c89 commit cf29ac3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<!-- Your comment below this -->

- Use new env `BITBUCKET_REPO_FULL_NAME` in bitbucket pipeline. - [@Soyn]
- Take commit hash from CI Source if available - [@f-meloni]

# 9.1.3
Expand Down
2 changes: 1 addition & 1 deletion source/ci_source/providers/BitbucketPipelines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit cf29ac3

Please sign in to comment.