diff --git a/build-filter.php b/build-filter.php index b4316ad..854e7dd 100644 --- a/build-filter.php +++ b/build-filter.php @@ -32,6 +32,12 @@ function runner($msg) { return true; } + $cmt = explode(' ', strtolower($in->comment->body)); + if (!in_array('@grahamcofborg', $cmt)) { + echo "not a borgpr\n"; + return true; + } + if (!\GHE\ACL::isUserAuthorized($in->comment->user->login)) { echo "Commenter not authorized (" . $in->comment->user->login . ")\n"; return true; @@ -55,12 +61,6 @@ function runner($msg) { # return true; # } - $cmt = explode(' ', strtolower($in->comment->body)); - if (!in_array('@grahamcofborg', $cmt)) { - echo "not a borgpr\n"; - return true; - } - $cmt = explode(' ', $in->comment->body); $tokens = array_map(function($term) { return trim($term); },