From 28828d67c527dd2251156d875ccdd40673640e58 Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com> Date: Wed, 5 Oct 2022 05:16:56 +0800 Subject: [PATCH] feat: add contribution type `promotion` --- 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) }