Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: all-contributors/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.22.0
Choose a base ref
...
head repository: all-contributors/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.23.0
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 4, 2022

  1. Copy the full SHA
    8fc7c7e View commit details
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/util/contribution-types.js
8 changes: 6 additions & 2 deletions src/util/contribution-types.js
Original file line number Diff line number Diff line change
@@ -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)
}