From b6f021195db310fef2e1b9336a7f4ffd0436a781 Mon Sep 17 00:00:00 2001 From: dragomagol <66640614+dragomagol@users.noreply.github.com> Date: Wed, 30 Mar 2022 20:07:19 -0700 Subject: [PATCH] add GBP: No Update label when title includes [no gbp] (#65739) Co-authored-by: tattle --- tools/WebhookProcessor/github_webhook_processor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/WebhookProcessor/github_webhook_processor.php b/tools/WebhookProcessor/github_webhook_processor.php index 040fbfb25d2..888a7d418ae 100644 --- a/tools/WebhookProcessor/github_webhook_processor.php +++ b/tools/WebhookProcessor/github_webhook_processor.php @@ -244,7 +244,6 @@ function tag_pr($payload, $opened) { if(strpos(strtolower($title), 'refactor') !== FALSE) $tags[] = 'Refactor'; - if(strpos(strtolower($title), 'revert') !== FALSE) $tags[] = 'Revert'; if(strpos(strtolower($title), 'removes') !== FALSE) @@ -271,6 +270,7 @@ function tag_pr($payload, $opened) { $tags[] = $tag; check_tag_and_replace($payload, '[dnm]', 'Do Not Merge', $tags); + check_tag_and_replace($payload, '[no gbp]', 'GBP: No Update', $tags); return array($tags, $remove); } @@ -336,7 +336,7 @@ function handle_pr($payload) { global $discord_announce_blacklist; global $no_changelog; global $game_announce_whitelist; - + $action = 'opened'; $validated = validate_user($payload); switch ($payload["action"]) {