feat(tools): Add a PR labeler action to the repo (#41458)

This commit is contained in:
Randell Dawson
2021-03-13 09:44:19 -07:00
committed by GitHub
parent f1c8a9825b
commit 50369edd12
9 changed files with 50 additions and 13 deletions
@@ -5,7 +5,7 @@ const validLabels = {
portuguese: 'language: Portuguese',
russian: 'language: Russian',
spanish: 'language: Spanish',
curriculum: 'scope: learn',
curriculum: 'scope: curriculum',
docs: 'scope: docs',
};
@@ -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: learn" label on it.
"scope: curriculum" label on it.
*/
const {
@@ -38,7 +38,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: learn')) {
if (existingLabels.includes('scope: curriculum')) {
labelsToAdd['status: need to test locally'] = 1;
}