mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 22:54:46 +00:00
add GBP: No Update label when title includes [no gbp] (#65739)
Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
@@ -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"]) {
|
||||
|
||||
Reference in New Issue
Block a user