feat: add contribution type promotion (#339)

This commit is contained in:
Angel Aviel Domaoan 2022-10-05 05:20:53 +08:00 committed by GitHub
parent 048b4e304c
commit 8fc7c7e689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}