From 07052d2870cb6d8ee7c0594be5c7f0ac2e554e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 10 Jan 2019 01:11:48 -0500 Subject: [PATCH] List website contributors as well when generating changelog entries --- scripts/changelog.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index 753b9365..f0e4a255 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -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); }