Skip to content

Commit 3b8b079

Browse files
authored
fix: define research and promotion contribution types (#428)
1 parent 17b99a6 commit 3b8b079

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/parse-comment.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const validContributionTypes = [
3535
"tutorial",
3636
"usertesting",
3737
"video",
38+
"research",
39+
"promotion",
3840
];
3941

4042
// Types that are valid multi words, that we need to re map back to their camelCase parts
@@ -91,6 +93,7 @@ const contributionTypeMappings = {
9193
translations: "translation",
9294
tutorials: "tutorial",
9395
videoes: "video",
96+
advertisement: "promotion",
9497
};
9598

9699
// Additional terms to match to types (plurals, aliases etc) that are multi word
@@ -108,6 +111,7 @@ const contributionTypeMultiWordMapping = {
108111
"user testing": "userTesting",
109112
"business development": "business",
110113
"project management": "projectManagement",
114+
"social media": "promotion",
111115
};
112116

113117
const Contributions = {};

0 commit comments

Comments
 (0)