add GBP: No Update label when title includes [no gbp] (#65739)

Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
dragomagol
2022-03-30 20:07:19 -07:00
committed by GitHub
parent f5ea51339f
commit b6f021195d

View File

@@ -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"]) {