-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
- more consistency with
parse-commit-messagev2 - few bugfixes
- don't
JSON.stringify, but make sure to escape backticks - better readme and API docs
- replace
execa(too big) withcross-spawn - replace
src/get-questionswith conventional-commit-types - (new) ✨ allow passing values to the
x,yandwflags, 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);