mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
feat: add contribution type promotion
(#339)
This commit is contained in:
parent
048b4e304c
commit
8fc7c7e689
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
const _ = require('lodash/fp')
|
||||
const repo = require('../repo')
|
||||
|
||||
const defaultTypes = function(repoType) {
|
||||
const defaultTypes = function (repoType) {
|
||||
return {
|
||||
a11y: {
|
||||
symbol: '️️️️♿️',
|
||||
|
@ -136,9 +136,13 @@ const defaultTypes = function(repoType) {
|
|||
symbol: '📹',
|
||||
description: 'Videos',
|
||||
},
|
||||
promotion: {
|
||||
symbol: '📣',
|
||||
description: 'Promotion',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function(options) {
|
||||
module.exports = function (options) {
|
||||
return _.assign(defaultTypes(options.repoType), options.types)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue