gradle-changelog-plugin
gradle-changelog-plugin copied to clipboard
'release' workflow: patched changelog contains CRLF instead of LF, does not have newline at end of file
Describe the bug:
In the 'release' workflow, the patched changelog contains CRLF instead of LF and does not have newline at end of file. I think the Gradle task 'patchChangelog' does it.

Reference: KENNYSOFT/IDEA-260828-Korean#2
Also, I've made the .gitattributes file to ensure the correct line ending (KENNYSOFT/IDEA-260828-Korean@b88aa75cfc3b05afd6ad1c16c03ceb5a4c67f79f) but it seems that it's not applied well.
Steps to reproduce:
- Write a changelog in the file, and commit it with LF.
- Release a new version.
- Auto-generated PR contains a change to CRLF.
Expected behavior:
Patch the file with LF, or at least apply the .gitattributes file.
Additional context:
To see the newline character difference, use --ws-error-highlight=all option to the Git command. (e.g., git diff, git show)