gradle-changelog-plugin icon indicating copy to clipboard operation
gradle-changelog-plugin copied to clipboard

'release' workflow: patched changelog contains CRLF instead of LF, does not have newline at end of file

Open KENNYSOFT opened this issue 4 years ago • 0 comments

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.

image

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:

  1. Write a changelog in the file, and commit it with LF.
  2. Release a new version.
  3. 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)

KENNYSOFT avatar Feb 19 '22 17:02 KENNYSOFT