Skip to content

Inconsistent carriage returns in generated changelogs #955

Closed
@wyardley

Description

@wyardley

The problem

The commit object returned from GitPython seems to sometimes contain DOS CRs (^M)s (even when the original commit message does not contain them). This results in inconsistent carriage return style in generated changelogs with the default template

Expected behavior

Consistent CRs in generated changelog

Environment

% python3 --version
Python 3.12.3
% pip3 --version   
pip 24.0 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)
% semantic-release --version
semantic-release, version 9.8.1

I can make a PR to fix this, though may need some help with figuring out the best way(s) to test if applicable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions