Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 #10

Open
tunnckoCore opened this issue Jul 25, 2018 · 1 comment
Open

v2 #10

tunnckoCore opened this issue Jul 25, 2018 · 1 comment

Comments

@tunnckoCore
Copy link
Member

tunnckoCore commented Jul 25, 2018

  • 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 <[email protected]>
`;

const commit = parse(msg);
const arr = gitcommit(commit);

console.log(arr.join('\n\n').trim() === msg);
@tunnckoCore
Copy link
Member Author

  • allow through flag to detect name of the CWD, so it can be added as scope

that would be useful for monorepos, if called from package inside packages/ dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant