Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <github@chrisrebert.com>2016-01-31 11:41:12 +0300
committerChris Rebert <github@chrisrebert.com>2016-01-31 11:41:12 +0300
commitdcfc9e51e3eef25ae5944565c166e5124e3fde5b (patch)
treee525db69733fd6875b00df86de8a9bb8375e0ae1
parent41bd2a422a46a471a1e57e13f47019bd350c26fb (diff)
parent287bfa8ec454b0ae5d7d49f2e487428df55d105d (diff)
Merge pull request #37 from twbs/fix-36
Fix #36
-rw-r--r--src/main/scala/com/getbootstrap/rorschach/auditing/TitleAuditor.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/com/getbootstrap/rorschach/auditing/TitleAuditor.scala b/src/main/scala/com/getbootstrap/rorschach/auditing/TitleAuditor.scala
index 81b5f8c..f863778 100644
--- a/src/main/scala/com/getbootstrap/rorschach/auditing/TitleAuditor.scala
+++ b/src/main/scala/com/getbootstrap/rorschach/auditing/TitleAuditor.scala
@@ -11,10 +11,12 @@ object TitleAuditor {
|and is thus considered rude.""".stripMargin.replaceAllLiterally("\n", " ")
def audit(title: String): Seq[String] = {
+ val cleanedTitle = title.trim.asciiLowerCased
if (
title.startsWith("Merge pull request #1 from ")
|| title.startsWith("Create ")
- || title.trim.asciiLowerCased == "master"
+ || cleanedTitle == "master"
+ || cleanedTitle == "test"
) {
Seq(message)
}