From 3b8b079865f73a84aa260e64da9b71a7d36687cd Mon Sep 17 00:00:00 2001 From: mayank singh tomar Date: Wed, 5 Oct 2022 02:58:48 +0530 Subject: [PATCH] fix: define `research` and `promotion` contribution types (#428) --- 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 = {};