Skip to content

Commit

Permalink
Fix setting the status URL for bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed May 6, 2018
1 parent e5c79bd commit f64a975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

## Master

* Fix setting the status url on bitbucket [@orta][]

# 3.6.4

* Fix running Danger on issues with no comments for real [@mxstbr][]
Expand Down
3 changes: 2 additions & 1 deletion source/platforms/BitBucketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ export class BitBucketServer implements Platform {
// https://bitbucket.org/atlassian/jiraconnect-ios/pull-requests/4/crash-groups/diff#comment-426
// So take the PR and attack the comment, I think :D

const host = this.api.repoCredentials.host
const prURL = this.api.getPRBasePath()
return issue && issue.id && `${prURL}/diff#comment-${issue.id}`
return issue && issue.id && `${host}${prURL}/diff#comment-${issue.id}`
}

getFileContents = this.api.getFileContents
Expand Down

0 comments on commit f64a975

Please sign in to comment.