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

Commit

Permalink
♻️ getFile for config files and overrides
Browse files Browse the repository at this point in the history
♻️  implement overrides

♻️ continue to streamline
  • Loading branch information
JeromeFitz committed May 4, 2021
1 parent 7044564 commit fdb886a
Show file tree
Hide file tree
Showing 20 changed files with 319 additions and 819 deletions.
30 changes: 27 additions & 3 deletions changelog.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
const config = require('./lib/themes/default')
/* eslint-disable filenames/match-exported */
// @note(typescript) need to grab the built version for testing
const config = require('./dist/themes/gitmoji.js').default

const questions = ['type', 'scope', 'subject', 'body', 'breaking']
const OVERRIDE_TEST = false

module.exports = { ...config, questions }
/* eslint-disable operator-linebreak */
const commit = OVERRIDE_TEST
? {
format: '{type}{scope}: {subject}',
maxMessageLength: 64,
minMessageLength: 3,
questions: ['commitTypes', 'commitSubject'],
scopes: ['', 'app'],
}
: config.commit

const branch = OVERRIDE_TEST
? {
format: '{branchType}{branchName}',
prefix: 'ABC-',
questions: ['branchFlag', 'branchTypes', 'branchName'],
url: 'https://abc.atlassian.net/browse/',
}
: config.branch

const changelog = { ...config, branch, commit }

module.exports = changelog
Loading

0 comments on commit fdb886a

Please sign in to comment.