MCPcopy Index your code
hub / github.com/streamich/git-cz / runNonInteractiveMode

Function runNonInteractiveMode

lib/runNonInteractiveMode.js:1–14  ·  view source on GitHub ↗
(state, {type = 'chore', subject = 'automated commit', ...restAnswers})

Source from the content-addressed store, hash-verified

1const runNonInteractiveMode = (state, {type = 'chore', subject = 'automated commit', ...restAnswers}) => {
2 const answers = {
3 subject,
4 type,
5 ...restAnswers
6 };
7
8 Object.keys(state.answers).forEach((key) => {
9 if (answers[key]) {
10 state.answers[key] = answers[key];
11 delete answers[key];
12 }
13 });
14};
15
16module.exports = runNonInteractiveMode;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…