Prevents github bot from removing Sprites and Sound labels (#1978)
This commit is contained in:
committed by
kevinz000
parent
3f24b8fcf3
commit
97269f8cd1
@@ -150,12 +150,16 @@ function tag_pr($payload, $opened) {
|
||||
else if ($mergable === FALSE)
|
||||
$tags[] = 'Merge Conflict';
|
||||
|
||||
$treetags = array('_maps' => 'Map Edit', 'tools' => 'Tools', 'SQL' => 'SQL', 'icons' => 'Sprites', 'sounds' => 'Sound');
|
||||
$treetags = array('_maps' => 'Map Edit', 'tools' => 'Tools', 'SQL' => 'SQL');
|
||||
$addonlytags = array('icons' => 'Sprites', 'sounds' => 'Sound');
|
||||
foreach($treetags as $tree => $tag)
|
||||
if(has_tree_been_edited($payload, $tree))
|
||||
$tags[] = $tag;
|
||||
else
|
||||
$remove[] = $tag;
|
||||
foreach($addonlytags as $tree => $tag)
|
||||
if(has_tree_been_edited($payload, $tree))
|
||||
$tags[] = $tag;
|
||||
|
||||
//only maintners should be able to remove these
|
||||
if(strpos($title, '[DNM]') !== FALSE)
|
||||
|
||||
Reference in New Issue
Block a user