mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user