Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Release notes keep nested list items on their own lines

KnifeLemon3bab517244a3
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cdff7566..a0796a8e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -88,8 +88,9 @@ jobs:
$changes = ''
$changelog = Get-Content CHANGELOG.md -Raw -Encoding utf8
if ($changelog -match "(?ms)^## $([regex]::Escape($version))[ \t]*\r?\n(.*?)(?=^## |\z)") {
- # One line per list item: GitHub shows the line breaks of the 120-column file in release notes.
- $changes = $Matches[1].Trim() -replace '\r?\n (?=\S)', ' '
+ # One line per list item: GitHub shows the line breaks of the 120-column file in release notes. Indented
+ # lines continue the item above, unless they start a nested item (" - "), which keeps its own line.
+ $changes = $Matches[1].Trim() -replace '\r?\n +(?!- |\* |\d+\. )(?=\S)', ' '
}
if (-not $changes) { Write-Warning "CHANGELOG.md has no section for $version" }