Skip to content

header-only messages fail parsing #3

@devnev

Description

@devnev

At the moment, a commit that is only a header line fails with "at least one empty line required after header". Even if github.com/conventionalcommit/commitlint is configured to not require body or footer lines.

Edit: From looking at the code, I think it happens when the header has a terminating newline before the eof. Which for me is what happens when I write a one-line commit message in git.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions