fix: update labels for learn
This commit is contained in:
@ -5,7 +5,7 @@ const validLabels = {
|
|||||||
portuguese: 'language: Portuguese',
|
portuguese: 'language: Portuguese',
|
||||||
russian: 'language: Russian',
|
russian: 'language: Russian',
|
||||||
spanish: 'language: Spanish',
|
spanish: 'language: Spanish',
|
||||||
curriculum: 'scope: curriculum',
|
curriculum: 'scope: learn',
|
||||||
docs: 'scope: docs',
|
docs: 'scope: docs',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
This is a one-off script to run on all open PRs to add the
|
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
|
"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');
|
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
|
// holds potential labels to add based on file path
|
||||||
const labelsToAdd = {};
|
const labelsToAdd = {};
|
||||||
const existingLabels = labels.map(({ name }) => name);
|
const existingLabels = labels.map(({ name }) => name);
|
||||||
if (existingLabels.includes('scope: curriculum')) {
|
if (existingLabels.includes('scope: learn')) {
|
||||||
labelsToAdd['status: need to test locally'] = 1;
|
labelsToAdd['status: need to test locally'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"id": 252661769,
|
"id": 252661769,
|
||||||
"node_id": "MDU6TGFiZWwyNTI2NjE3Njk=",
|
"node_id": "MDU6TGFiZWwyNTI2NjE3Njk=",
|
||||||
"url": "https://api.github.com/repos/freeCodeCamp/freeCodeCamp/labels/scope:%20curriculum",
|
"url": "https://api.github.com/repos/freeCodeCamp/freeCodeCamp/labels/scope:%20curriculum",
|
||||||
"name": "scope: curriculum",
|
"name": "scope: learn",
|
||||||
"color": "9631e2",
|
"color": "9631e2",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user