fix: update labels for learn

This commit is contained in:
Mrugesh Mohapatra
2020-04-23 17:23:34 +05:30
parent 505ace1357
commit 35898e27f8
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/*
This is a one-off script to run on all open PRs to add the
"status: need to test locally" label to any PR with an existing
"scope: curriculum" label on it.
"scope: learn" label on it.
*/
const config = require('../config');
@ -25,7 +25,7 @@ const log = new ProcessingLog('all-locally-tested-labels');
// holds potential labels to add based on file path
const labelsToAdd = {};
const existingLabels = labels.map(({ name }) => name);
if (existingLabels.includes('scope: curriculum')) {
if (existingLabels.includes('scope: learn')) {
labelsToAdd['status: need to test locally'] = 1;
}