Skip to content

Commit

Permalink
fix: define research and promotion contribution types (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstomar698 committed Oct 4, 2022
1 parent 17b99a6 commit 3b8b079
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/parse-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -108,6 +111,7 @@ const contributionTypeMultiWordMapping = {
"user testing": "userTesting",
"business development": "business",
"project management": "projectManagement",
"social media": "promotion",
};

const Contributions = {};
Expand Down

0 comments on commit 3b8b079

Please sign in to comment.