Skip to content

Commit

Permalink
fix: fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Dec 6, 2023
1 parent faa57de commit 36d6a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function getRepoInformations (): Promise<RepositoryInfos> {
}
}

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
Expand All @@ -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
}
Expand Down

0 comments on commit 36d6a27

Please sign in to comment.