mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
[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:
committed by
kevinz000
parent
c81f4888fa
commit
2f11412766
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user