Webhook processor will comment negative PR balances on unlabelled PRs (#32771)

This commit is contained in:
Jordan Brown
2017-11-16 17:07:45 -05:00
committed by Emmett Gaines
parent d447b59996
commit d740691463

View File

@@ -365,7 +365,7 @@ function handle_pr($payload) {
set_labels($payload, $labels, $remove);
if($no_changelog)
check_dismiss_changelog_review($payload);
if(get_pr_code_friendliness($payload) < 0){
if(get_pr_code_friendliness($payload) <= 0){
$balances = pr_balances();
$author = $payload['pull_request']['user']['login'];
if(isset($balances[$author]) && $balances[$author] < 0 && !is_maintainer($payload, $author))