List website contributors as well when generating changelog entries

This commit is contained in:
Jérémie Astori 2019-01-10 01:11:48 -05:00
parent 2a1e711f42
commit 07052d2870
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8

View file

@ -724,11 +724,16 @@ async function generateChangelogEntry(changelog, targetVersion) {
const codeCommitsAndPullRequests = await codeRepo.fetchCommitsAndPullRequestsSince("v" + previousVersion);
items = parse(codeCommitsAndPullRequests);
items.milestone = await codeRepo.fetchMilestone(targetVersion);
contributors = extractContributors(codeCommitsAndPullRequests);
const websiteRepo = new RepositoryFetcher(client, "thelounge.github.io");
const previousWebsiteVersion = await websiteRepo.fetchPreviousVersion(targetVersion);
items.websiteDocumentation = await websiteRepo.fetchCommitsAndPullRequestsSince("v" + previousWebsiteVersion);
const websiteCommitsAndPullRequests = await websiteRepo.fetchCommitsAndPullRequestsSince("v" + previousWebsiteVersion);
items.websiteDocumentation = websiteCommitsAndPullRequests;
contributors = extractContributors([
...codeCommitsAndPullRequests,
...websiteCommitsAndPullRequests,
]);
dedupeEntries(changelog, items);
}