Use website repo last tag because it can differ

This commit is contained in:
Pavel Djundik 2018-09-19 14:42:37 +03:00
parent d326435fe7
commit 557d4c4ddd

View file

@ -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;