Skip to content

v2 #10

Description

@tunnckoCore
  • 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);

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions