Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
🔧 more defaults to the new default 🤪️
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeFitz authored and kodiakhq[bot] committed May 1, 2021
1 parent f2f4b5d commit 6ef6672
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
14 changes: 2 additions & 12 deletions changelog.config.js
@@ -1,13 +1,3 @@
const branch = {
format: '{branchType}{branchName}',
projectCode: '',
questions: ['branchName', 'branchPrefix', 'branchType'],
ticketUrl: '',
}
const format = '{emoji}{scope} {branchName}{subject}'
const scopes = ['', 'release']
const questions = ['branchPrefix', 'type', 'scope', 'subject', 'body', 'breaking']
const theme = 'default'
const config = require('./lib/themes/default')

// eslint-disable-next-line object-property-newline
module.exports = { branch, format, questions, scopes, theme }
module.exports = { ...config }
8 changes: 4 additions & 4 deletions lib/themes/default.js
@@ -1,9 +1,9 @@
/* eslint-disable max-len, sort-keys */
module.exports = {
branch: {
format: '{branchName}',
format: '{branchType}{branchName}',
projectCode: '',
questions: ['branchName'],
questions: ['branchName', 'branchPrefix', 'branchType'],
ticketUrl: '',
},
branchTypes: {
Expand Down Expand Up @@ -116,10 +116,10 @@ module.exports = {
closedIssueMessage: 'Closes: ',
closedIssuePrefix: '✅ ',
disableEmoji: false,
format: '{type}{scope}: {emoji}{subject}',
format: '{emoji}{scope} {branchName}{subject}',
maxMessageLength: 64,
minMessageLength: 3,
questions: ['type', 'scope', 'subject', 'body', 'breaking', 'issues', 'lerna'],
questions: ['branchPrefix', 'type', 'scope', 'subject', 'body', 'breaking'],
scopes: [],
theme: 'default',
types: {
Expand Down
16 changes: 14 additions & 2 deletions scripts/gitmoji/gitmojiTheme.js
@@ -1,12 +1,24 @@
const fs = require('fs')
const path = require('path')
const { branchTypes, types } = require('../../data/gitmoji/index.json')
const defaultTheme = require('../../lib/themes/default')
const originalTheme = require('../../lib/themes/original')

const branch = {
format: '{branchType}{branchName}',
projectCode: '',
questions: ['branchName', 'branchPrefix', 'branchType'],
ticketUrl: '',
}
const format = '{emoji}{scope} {branchName}{subject}'
const questions = ['branchPrefix', 'type', 'scope', 'subject', 'body', 'breaking']

const theme = {
...defaultTheme,
...originalTheme,
branch,
branchTypes,
breakingChangePrefix: '💥️ ',
format,
questions,
types,
}

Expand Down

0 comments on commit 6ef6672

Please sign in to comment.