From 2560465de29cee227d0d82fda605f3bf5d8a8ac5 Mon Sep 17 00:00:00 2001 From: Brendan Forster <github@brendanforster.com> Date: Tue, 11 Jul 2023 16:56:11 -0300 Subject: [PATCH] tweak release notes output so that checksum is before file name --- script/generate-release-notes.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/script/generate-release-notes.ts b/script/generate-release-notes.ts index d263954e079..edbdce15954 100644 --- a/script/generate-release-notes.ts +++ b/script/generate-release-notes.ts @@ -262,7 +262,7 @@ ${itemsText} } function formatEntry(e: ChecksumEntry): string { - return `**${e.filename}**\n${e.checksum}\n` + return `${e.checksum} ${e.filename}` } function renderArchitectureIfNotEmpty( @@ -276,11 +276,9 @@ function renderArchitectureIfNotEmpty( const itemsText = items.map(formatEntry).join('\n') return ` - ## ${name} -${itemsText} - ` +${itemsText}` } /** @@ -298,7 +296,6 @@ ${renderSection('Improved', releaseNotesGroups.improved, false)} ${renderSection('Removed', releaseNotesGroups.removed)} ## SHA-256 checksums - ${renderArchitectureIfNotEmpty('x64', shaEntries.x64)} ${renderArchitectureIfNotEmpty('ARM64', shaEntries.arm64)} ${renderArchitectureIfNotEmpty('ARM', shaEntries.arm)}`