(state, {type = 'chore', subject = 'automated commit', ...restAnswers})
| 1 | const 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 | |
| 16 | module.exports = runNonInteractiveMode; |
no outgoing calls
no test coverage detected
searching dependent graphs…