Skip to content

Commit

Permalink
Enable multiline regex mode for "test <whatever> please"
Browse files Browse the repository at this point in the history
This means you can write a comment and then do the line by itself in
one GitHub comment. Otherwise it's requiring you have exactly one
per comment which is annoying.
  • Loading branch information
jasonmalinowski committed May 3, 2017
1 parent c58450d commit 06b81db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netci.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static void addRoslynJob(def myJob, String jobName, String branchName, Boolean i
if (triggerPhraseExtra) {
triggerCore = "${triggerCore}|${triggerPhraseExtra}"
}
def triggerPhrase = "(?i)^\\s*(@?dotnet-bot\\,?\\s+)?(re)?test\\s+(${triggerCore})(\\s+please\\.?)?\\s*\$";
def triggerPhrase = "(?im)^\\s*(@?dotnet-bot\\,?\\s+)?(re)?test\\s+(${triggerCore})(\\s+please\\.?)?\\s*\$";
def contextName = jobName
Utilities.addGithubPRTriggerForBranch(myJob, branchName, contextName, triggerPhrase, triggerPhraseOnly)
} else {
Expand Down
2 changes: 1 addition & 1 deletion perf.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def generate(boolean isPr) {
TriggerBuilder prTrigger = TriggerBuilder.triggerOnPullRequest()
prTrigger.permitOrg('Microsoft')
prTrigger.permitOrg('dotnet')
prTrigger.setCustomTriggerPhrase("(?i)^\\s*(@dotnet-bot\\s+)?(re)?test\\s+perf(\\s+please)?\\s*\$" )
prTrigger.setCustomTriggerPhrase("(?im)^\\s*(@dotnet-bot\\s+)?(re)?test\\s+perf(\\s+please)?\\s*\$" )
prTrigger.triggerForBranch(branchName);
prTrigger.setGithubContext('Performance Test Run')
prTrigger.emitTrigger(myJob)
Expand Down

0 comments on commit 06b81db

Please sign in to comment.