diff --git a/scripts/_utils.ts b/scripts/_utils.ts index a863c3d3a..d4a667568 100644 --- a/scripts/_utils.ts +++ b/scripts/_utils.ts @@ -107,5 +107,5 @@ export async function getLatestCommits() { const config = await loadChangelogConfig(process.cwd()) const { stdout: latestTag } = await exec('git', ['describe', '--tags', '--abbrev=0']) - return parseCommits(await getGitDiff(latestTag), config) + return parseCommits(await getGitDiff(latestTag.trim()), config) }