Skip to content

Empty body with breaking changes field present #2813

Closed
@btd1337

Description

@btd1337

Expected Behavior

  • leave the body field empty.
  • check the breaking changes (y) option
  • inform the body after breakingBody message be displayed
  • body text be added to commit message

Current Behavior

  • body message not being added to commit message when it's inserted after breakingBody prompt

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

  • git commit
  • select type
  • select scope
  • add short description
  • leave the body (long description) empty, press .
  • insert y when prompt ask if there are breaking changes
  • breakingBody message is displayed
  • insert body (long commit description)
  • follow to the end of the process
  • default commit message editor is opened to confirm the commit message
  • Note that the body field will be empty.
commitlint.config.js ```js ```

Context

Your Environment

Executable Version
commitlint --version 13.2.1
git --version 2.30.1 (Apple Git-130)
node --version 12.18.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions