chore: trim tag (#28687)

This commit is contained in:
Daniel Roe 2024-08-23 21:08:58 +01:00
parent 8cb4bccc79
commit 3a57295295
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -110,7 +110,7 @@ export async function getLatestCommits () {
const config = await loadChangelogConfig(process.cwd()) const config = await loadChangelogConfig(process.cwd())
const { stdout: latestTag } = await exec('git', ['describe', '--tags', '--abbrev=0']) 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 () { export async function getContributors () {