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.
💥 new config 🔥️ no theme 🥳️ all gitmoji
💥️ BREAKING CHANGE: Trigger breaking change
- Loading branch information
1 parent
595c947
commit 14a1e2c
Showing
5 changed files
with
100 additions
and
945 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
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
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
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,21 +1,32 @@ | ||
import chalkPipe from 'chalk-pipe' | ||
|
||
/* eslint-disable no-console */ | ||
const runNonInteractiveMode = ( | ||
state, | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
{ type = 'chore', subject = 'automated commit', ...restAnswers } | ||
) => { | ||
// eslint-disable-next-line no-console | ||
console.dir('0000 todo') | ||
const answers = { | ||
subject, | ||
type, | ||
...restAnswers, | ||
} | ||
// | ||
console.log(chalkPipe('yellow.bold')('🚧️ runNonInteractiveMode is not finished')) | ||
console.log( | ||
chalkPipe('yellow')('🤕️ Help at: https://github.com/JeromeFitz/git-cz') | ||
) | ||
|
||
// eslint-disable-next-line no-process-exit | ||
process.exit() | ||
|
||
// const answers = { | ||
// subject, | ||
// type, | ||
// ...restAnswers, | ||
// } | ||
|
||
Object.keys(state.answers).forEach((key) => { | ||
if (answers[key]) { | ||
state.answers[key] = answers[key] | ||
delete answers[key] | ||
} | ||
}) | ||
// Object.keys(state.answers).forEach((key) => { | ||
// if (answers[key]) { | ||
// state.answers[key] = answers[key] | ||
// delete answers[key] | ||
// } | ||
// }) | ||
} | ||
|
||
export default runNonInteractiveMode |
Oops, something went wrong.