- more consistency with
parse-commit-message v2
- few bugfixes
- don't
JSON.stringify, but make sure to escape backticks
- better readme and API docs
- replace
execa (too big) with cross-spawn
- replace
src/get-questions with conventional-commit-types
- (new) ✨ allow passing values to the
x, y and w flags, instead of prompting.
In the end of the day, this should be possible
const { parse } = require('parse-commit-message');
const gitcommit = require('gitcommit');
const msg = `feat(bar): yeah zazzy
Some multiline
body here.
With some footer
here.
Sign-off-by: Charlike Mike Reagent <olsten.larck@gmail.com>
`;
const commit = parse(msg);
const arr = gitcommit(commit);
console.log(arr.join('\n\n').trim() === msg);
parse-commit-messagev2JSON.stringify, but make sure to escape backticksexeca(too big) withcross-spawnsrc/get-questionswith conventional-commit-typesx,yandwflags, instead of prompting.In the end of the day, this should be possible