From 12f75a8638ab3848c7870930d3c60723659863e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 08:49:38 +0000 Subject: [PATCH 1/2] Initial plan From 2a2a1836ffe6f458da0d591e808eb4a4eb722e6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 08:58:02 +0000 Subject: [PATCH 2/2] Fix multiline changelog entries in news text generation Co-authored-by: vjik <525501+vjik@users.noreply.github.com> --- src/App/Command/Release/MakeCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/App/Command/Release/MakeCommand.php b/src/App/Command/Release/MakeCommand.php index ada86ad..b912653 100644 --- a/src/App/Command/Release/MakeCommand.php +++ b/src/App/Command/Release/MakeCommand.php @@ -282,7 +282,13 @@ private function displayReleaseSummary(Package $package, ComposerConfig $compose continue; } - $changes[] = '- ' . preg_replace('~^-.*?:\s+(.*)\s+\(?.*?\)$~', '$1', $note); + // Extract the main message from changelog entry, handling multiline entries + $processed = preg_replace('~^-\s+[A-Za-z]+\s+[^:]*:\s+(.*?)\s*\([^)]*\)$~s', '$1', $note); + if ($processed === $note) { + // Pattern didn't match, fallback to simpler processing + $processed = preg_replace('~^-\s+~', '', $note); + } + $changes[] = '- ' . $processed; } $changes = implode("\n", $changes);