Skip to content

Default "longer description" is always "-" #2971

Closed
@dangreen

Description

@dangreen

Expected Behavior

Empty longer description.

Current Behavior

"longer description" is always "-"

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

restore this

const commitBody = body || breakingBody || issuesBody || '-';

to this

const commitBody = body ?? breakingBody ?? issuesBody ?? '-';

Tested

Steps to Reproduce (for bugs)

  1. clone https://github.com/TrigenSoftware/scripts
  2. pnpm i
  3. pnpm commit -- --allow-empty
  4. "longer description" is "-"

Your Environment

Issue appeared in @commitlint/cz-commitlint@16.0.0

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