This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
forked from streamich/git-cz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ getFile for config files and overrides
♻️ implement overrides ♻️ continue to streamline
- Loading branch information
1 parent
7044564
commit fdb886a
Showing
20 changed files
with
319 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.