Skip to content

[Bug Report] cz bump --changelog adds empty lines to the beginning of the CHANGELOG.md #192

@misterkramer

Description

@misterkramer

Description

After each execution of the command cz bump --yes --changelog, one new empty line is invariably added to the CHANGELOG.md

commitizen version

1.22.1

Steps to Reproduce

Steps to reproduce the behavior:

  1. Commit change
  2. Run cz bump --yes --changelog

Expected Behavior

After each executing cz bump --yes --changelog there is only one empty line at the beginning of the CHANGELOG.md

Actual Behavior

An empty line are added to the beginning of the CHANGELOG.md after each execution cz bump --yes --changelog

More Information

This can also be seen here with blame - https://github.com/commitizen-tools/commitizen/blame/master/CHANGELOG.md
image

I assume this is because of the parameter:

"incremental": True,

I can also reproduce this problem by running cz changelog --incremental

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