[MIRROR] Working on unit test related issues grants 6 GBP, automatically add tag (#1892)

* Working on unit test related issues grants 6 GBP, automatically add tag (#55199)

Unit tests (a label I recently added) will now give 6 GBP. This label should be added to anything that adds a new unit test, even on features.

* Working on unit test related issues grants 6 GBP, automatically add tag

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-11-28 12:53:47 +01:00
committed by GitHub
parent 04c81c79f9
commit 923cacf541

View File

@@ -251,7 +251,7 @@ function tag_pr($payload, $opened) {
$tags[] = 'Merge Conflict';
$treetags = array('_maps' => 'Map Edit', 'tools' => 'Tools', 'SQL' => 'SQL', '.github' => 'GitHub');
$addonlytags = array('icons' => 'Sprites', 'sound' => 'Sound', 'config' => 'Config Update', 'code/controllers/configuration/entries' => 'Config Update', 'tgui' => 'UI');
$addonlytags = array('icons' => 'Sprites', 'sound' => 'Sound', 'config' => 'Config Update', 'code/controllers/configuration/entries' => 'Config Update', 'code/modules/unit_tests' => 'Unit Tests', 'tgui' => 'UI');
foreach($treetags as $tree => $tag)
if(has_tree_been_edited($payload, $tree))
$tags[] = $tag;
@@ -645,11 +645,11 @@ function get_pr_code_friendliness($payload, $oldbalance = null){
$label_values = array(
'Fix' => 2,
'Refactor' => 10,
'CI/Tests' => 3,
'Code Improvement' => 1,
'Grammar and Formatting' => 1,
'Priority: High' => 4,
'Priority: CRITICAL' => 5,
'Unit Tests' => 6,
'Logging' => 1,
'Feedback' => 1,
'Performance' => 3,