diff --git a/scripts/_utils.ts b/scripts/_utils.ts index 8e8bb8bdf3..fb5804c514 100644 --- a/scripts/_utils.ts +++ b/scripts/_utils.ts @@ -110,7 +110,7 @@ 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) } export async function getContributors () {