Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/App/Command/Release/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading