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
230 stars 32 forks source link

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

Closed william-suppo closed 2 years ago

william-suppo commented 2 years 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 2 years 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.