Allows [s] to be used anywhere in the title (#29021)

This commit is contained in:
JamieH
2017-07-07 04:54:05 +01:00
committed by Cheridan
parent b825ca1545
commit e8076924a4
+1 -1
View File
@@ -212,7 +212,7 @@ function handle_pr($payload) {
return;
}
if (strtolower(substr($payload['pull_request']['title'], 0, 3)) == '[s]') {
if (strpos(strtolower($payload['pull_request']['title']), '[s]') !== false) {
echo "PR Announcement Halted; Secret tag detected.\n";
return;
}