[MIRROR] Webhook processor will comment negative PR balances on unlabelled PRs (#3970)

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

* Webhook processor will comment negative PR balances on unlabelled PRs
This commit is contained in:
CitadelStationBot
2017-11-17 02:26:08 -06:00
committed by kevinz000
parent c81f4888fa
commit 2f11412766

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))