From 8fc7c7e689878f0fefe3c276e873a9247c5f6b1d Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Wed, 5 Oct 2022 05:20:53 +0800 Subject: [PATCH] feat: add contribution type `promotion` (#339) --- src/util/contribution-types.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/util/contribution-types.js b/src/util/contribution-types.js index 98073263..9d0a3c50 100644 --- a/src/util/contribution-types.js +++ b/src/util/contribution-types.js @@ -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) }