From 557d4c4dddfa5bba8008870bb25dcc5a9f89537c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 19 Sep 2018 14:42:37 +0300 Subject: [PATCH] Use website repo last tag because it can differ --- scripts/changelog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;