Skip to content

Commit

Permalink
fix: improved styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Berkner committed Apr 2, 2020
1 parent 56176be commit bb1c686
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ${status.failureMessages && stripANSI(status.failureMessages.join('\n'))}
const getLinkToBitbucketFile = (fileName: string): string => {
const url = `${process.env.DANGER_BITBUCKETSERVER_HOST}/${
danger.bitbucket_server.metadata.repoSlug
}/browse/ + ${fileName}'?at=${encodeURIComponent(
}/browse/${fileName}'?at=${encodeURIComponent(
danger.bitbucket_server.pr.fromRef.id
)}`
return `[${fileName}](${url})`
Expand All @@ -150,7 +150,9 @@ const fileToFailString = (
path: string,
failedAssertions: IInsideFileTestResults[]
): string => `
<b>🃏 FAIL</b> in ${
${
process.env.DANGER_BITBUCKETSERVER_HOST ? '**🃏 FAIL**' : '<b>🃏 FAIL</b>'
} in ${
process.env.DANGER_BITBUCKETSERVER_HOST
? getLinkToBitbucketFile(path)
: danger.github.utils.fileLinks([path])
Expand Down

0 comments on commit bb1c686

Please sign in to comment.