marcocesarato / php-conventional-changelog

A PHP tool built to generate a changelog from a project's commit messages and metadata following the conventionalcommits.org and automate versioning with semver.org.
GNU General Public License v3.0
227 stars 32 forks source link

fix: Can parse header with carriage return and newline. #52

Closed william-suppo closed 1 year ago

william-suppo commented 1 year ago

Hello,

I have an old repository where I added the package.

When I run the command the headers are repeated because those in place are not detected

I print you the result after the command :

<!--- BEGIN HEADER -->
# Changelog

All notable changes to this project will be documented in this file.
<!--- END HEADER -->

## 4.0.2 (2022-11-25)

### Documentation

* Preparing CHANGELOG for automation.

<!--- BEGIN HEADER -->
# Changelog

All notable changes to this project will be documented in this file.
<!--- END HEADER -->

## 4.0.1 (2022-08-05)

So I made a fix with a test :)

marcocesarato commented 1 year ago

Thanks so much for the pull request. I was planning to implement some unit tests to test other issues reported, you made the task easier.