Skip to content

Commit

Permalink
feat(processIssueComment): added Project Management (#166)
Browse files Browse the repository at this point in the history
* feat(processIssueComment): added Project Management

Added the PM category from all-contributors/all-contributors#199

* chore: updated cli and snapshots

* style(parse-comment): lint fix

* chore(update yarn.lock):
  • Loading branch information
Berkmann18 authored and jakebolam committed Mar 22, 2019
1 parent 5b139b1 commit e2208eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"commit": "git-cz"
},
"dependencies": {
"all-contributors-cli": "^6.1.2",
"all-contributors-cli": "^6.2.0",
"aws-sdk": "^2.395.0",
"compromise": "^11.13.0",
"node-fetch": "^2.3.0",
Expand Down
7 changes: 7 additions & 0 deletions src/tasks/processIssueComment/utils/parse-comment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const validContributionTypes = [
'maintenance',
'platform',
'plugin',
'projectManagement',
'question',
'review',
'security',
Expand All @@ -35,6 +36,7 @@ const validMultiContributionTypesMapping = {
eventorganizing: 'eventOrganizing',
fundingfinding: 'fundingFinding',
usertesting: 'userTesting',
projectmanagement: 'projectManagement',
}

// Additional terms to match to types (plurals, aliases etc)
Expand All @@ -58,8 +60,12 @@ const contributionTypeMappings = {
infras: 'infra',
infrastructure: 'infra',
maintaining: 'maintenance',
management: 'projectManagement',
managing: 'projectManagement',
platforms: 'platform',
plugins: 'plugin',
project: 'projectManagement',
projectManaging: 'projectManagement',
questions: 'question',
reviews: 'review',
securing: 'security',
Expand All @@ -82,6 +88,7 @@ const contributionTypeMultiWordMapping = {
'funding finding': 'fundingFinding',
'user testing': 'userTesting',
'business development': 'business',
'project management': 'projectManagement',
}

const Contributions = {}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ ajv@^6.5.3, ajv@^6.5.5, ajv@^6.6.1:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"

all-contributors-cli@^6.1.2:
version "6.1.2"
resolved "https://registry.yarnpkg.com/all-contributors-cli/-/all-contributors-cli-6.1.2.tgz#ec45c0629900111f6911fd320de4e669e57c8013"
integrity sha512-IfX9BEbcSrn3/tZCpajxc8343Wnz29s9MaiFjN8KREHsDiLv/PLxuCVPSsdZSdS8ajhSM5b+u8kli8Dx6dK6pw==
all-contributors-cli@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/all-contributors-cli/-/all-contributors-cli-6.2.0.tgz#60d5c4a190ed330bb1905881a5095270433bde2d"
integrity sha512-ppAgu0gsyexeLR9vs9CrGJUZbQbP1ei6bRWkG3drvefjAjLOZeVq6Fjh/kSPDtsnWI/l6XAWWR2MQWuIwtd7Dg==
dependencies:
"@babel/runtime" "^7.2.0"
async "^2.0.0-rc.1"
Expand Down

0 comments on commit e2208eb

Please sign in to comment.