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 _ = require('lodash/fp')
const repo = require('../repo') const repo = require('../repo')
const defaultTypes = function(repoType) { const defaultTypes = function (repoType) {
return { return {
a11y: { a11y: {
symbol: '️️️️♿️', symbol: '️️️️♿️',
@ -136,9 +136,13 @@ const defaultTypes = function(repoType) {
symbol: '📹', symbol: '📹',
description: 'Videos', description: 'Videos',
}, },
promotion: {
symbol: '📣',
description: 'Promotion',
},
} }
} }
module.exports = function(options) { module.exports = function (options) {
return _.assign(defaultTypes(options.repoType), options.types) return _.assign(defaultTypes(options.repoType), options.types)
} }