From 36d6a27116b34a6fe695edf6b0232a96ed01b958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Wed, 6 Dec 2023 15:45:52 +0100 Subject: [PATCH] fix: fix release script --- release.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.ts b/release.ts index 9c135b17..6ab4a5da 100644 --- a/release.ts +++ b/release.ts @@ -91,7 +91,7 @@ async function getRepoInformations (): Promise { } } -async function generateReleaseNotes (repoInfos: RepositoryInfos, changes: string, version: string, lastTag?: string) { +async function generateReleaseNotes (repoInfos: RepositoryInfos, version: string, changes: string, lastTag?: string) { const tag = `v${version}` const newCommits = (lastTag != null @@ -110,7 +110,7 @@ async function generateReleaseNotes (repoInfos: RepositoryInfos, changes: string const releaseDetails = newCommits.map(({ hash, subj, short }) => `* ${subj} ([${short}](${repoInfos.publicUrl}/commit/${hash}))`).join('\n') - const releaseNotes = `${releaseDiffRef}\n${changes}\n### commits: ${releaseDetails}\n` + const releaseNotes = `${releaseDiffRef}\n${changes}\n### commits:\n${releaseDetails}\n` return releaseNotes }