From 35898e27f8eb541fd2886260f1b9bbe16aeef39d Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Thu, 23 Apr 2020 17:23:34 +0530 Subject: [PATCH] fix: update labels for learn --- tools/dashboard/lib/validation/valid-labels.js | 2 +- tools/dashboard/one-off-scripts/add-test-locally-label.js | 4 ++-- .../probot/test/payloads/events/pullRequests.unrelated.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dashboard/lib/validation/valid-labels.js b/tools/dashboard/lib/validation/valid-labels.js index 4103119119..a827354d45 100644 --- a/tools/dashboard/lib/validation/valid-labels.js +++ b/tools/dashboard/lib/validation/valid-labels.js @@ -5,7 +5,7 @@ const validLabels = { portuguese: 'language: Portuguese', russian: 'language: Russian', spanish: 'language: Spanish', - curriculum: 'scope: curriculum', + curriculum: 'scope: learn', docs: 'scope: docs', }; diff --git a/tools/dashboard/one-off-scripts/add-test-locally-label.js b/tools/dashboard/one-off-scripts/add-test-locally-label.js index c94275115e..8bf45b34ce 100644 --- a/tools/dashboard/one-off-scripts/add-test-locally-label.js +++ b/tools/dashboard/one-off-scripts/add-test-locally-label.js @@ -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; } diff --git a/tools/dashboard/probot/test/payloads/events/pullRequests.unrelated.json b/tools/dashboard/probot/test/payloads/events/pullRequests.unrelated.json index 73773d5814..f6de79af4b 100644 --- a/tools/dashboard/probot/test/payloads/events/pullRequests.unrelated.json +++ b/tools/dashboard/probot/test/payloads/events/pullRequests.unrelated.json @@ -48,7 +48,7 @@ "id": 252661769, "node_id": "MDU6TGFiZWwyNTI2NjE3Njk=", "url": "https://api.github.com/repos/freeCodeCamp/freeCodeCamp/labels/scope:%20curriculum", - "name": "scope: curriculum", + "name": "scope: learn", "color": "9631e2", "default": false },