Allows [s] to be used anywhere in the title (#1923)
This commit is contained in:
committed by
kevinz000
parent
ef4befcdd5
commit
efae0e576e
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user