From 4f3a74c4c8b6522be0514ff04b4472daaf51aa81 Mon Sep 17 00:00:00 2001 From: mayank singh tomar Date: Tue, 4 Oct 2022 01:24:01 +0530 Subject: [PATCH] Update parse-comment.js We are adding research and promotion keywords to parse-comment.js for Issue #399 --- lib/parse-comment.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/parse-comment.js b/lib/parse-comment.js index 082e907e..1175440d 100644 --- a/lib/parse-comment.js +++ b/lib/parse-comment.js @@ -35,6 +35,8 @@ const validContributionTypes = [ "tutorial", "usertesting", "video", + "research", + "promotion", ]; // Types that are valid multi words, that we need to re map back to their camelCase parts @@ -91,6 +93,7 @@ const contributionTypeMappings = { translations: "translation", tutorials: "tutorial", videoes: "video", + advertisement: "promotion", }; // Additional terms to match to types (plurals, aliases etc) that are multi word @@ -108,6 +111,7 @@ const contributionTypeMultiWordMapping = { "user testing": "userTesting", "business development": "business", "project management": "projectManagement", + "social media": "promotion", }; const Contributions = {};