diff --git a/scripts/changelog.js b/scripts/changelog.js index 5e1d8b41..4c5e67c6 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -667,7 +667,8 @@ async function generateChangelogEntry(targetVersion) { contributors = extractContributors(codeCommitsAndPullRequests); const websiteRepo = new RepositoryFetcher(client, "thelounge.github.io"); - items.websiteDocumentation = await websiteRepo.fetchCommitsAndPullRequestsSince("v" + previousVersion); + const previousWebsiteVersion = await websiteRepo.fetchPreviousVersion(targetVersion); + items.websiteDocumentation = await websiteRepo.fetchCommitsAndPullRequestsSince("v" + previousWebsiteVersion); } items.version = targetVersion;