diff options
Diffstat (limited to 'src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala')
-rw-r--r-- | src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala b/src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala index c4dc212..db31efa 100644 --- a/src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala +++ b/src/main/scala/com/getbootstrap/savage/server/PullRequestCommenter.scala @@ -13,16 +13,17 @@ class PullRequestCommenter extends GitHubActorWithLogging { override def receive = { case PullRequestBuildResult(prNum, commitSha, buildUrl, succeeded) => { + val mythicalStatus = if (succeeded) { "**CONFIRMED**" } else { "**BUSTED**" } + val plainStatus = if (succeeded) { "**Tests passed.**" } else { "**Tests failed.**" } val statusRemark = if (succeeded) { - "CONFIRMED (Tests passed)" + "CONFIRMED ()" } else { - "BUSTED (Tests failed)" + "BUSTED ()" } val commentMarkdown = s""" - |Automated cross-browser testing via Sauce Labs and Travis CI shows that the changes in this pull request are: - |${statusRemark} + |${plainStatus} Automated cross-browser testing via Sauce Labs and Travis CI shows that the changes in this pull request are: ${mythicalStatus} | |Commit: ${commitSha.sha} |Build details: ${buildUrl} |