diff options
author | Chris Rebert <github@rebertia.com> | 2014-11-19 22:22:50 +0300 |
---|---|---|
committer | Chris Rebert <github@rebertia.com> | 2014-11-19 22:22:50 +0300 |
commit | 3914edf57c710dd62e9e7db8bcd090a49ab7c396 (patch) | |
tree | 376901e538d2e49e4daeb7556f1c3d89cb5862fd /src | |
parent | ff82f538f3678e993c319cb2cd3817f2a99d1844 (diff) |
adjust copy per @mdo
Diffstat (limited to 'src')
-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} |