Skip to content

Commit

Permalink
tweak release notes output so that checksum is before file name
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jul 11, 2023
1 parent 3b0e39e commit 2560465
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions script/generate-release-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ ${itemsText}
}

function formatEntry(e: ChecksumEntry): string {
return `**${e.filename}**\n${e.checksum}\n`
return `${e.checksum} ${e.filename}`
}

function renderArchitectureIfNotEmpty(
Expand All @@ -276,11 +276,9 @@ function renderArchitectureIfNotEmpty(
const itemsText = items.map(formatEntry).join('\n')

return `
## ${name}
${itemsText}
`
${itemsText}`
}

/**
Expand All @@ -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)}`
Expand Down

0 comments on commit 2560465

Please sign in to comment.