mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
Merge pull request #2970 from thelounge/astorije/changelog-gen-contributors
List website contributors as well when generating changelog entries
This commit is contained in:
commit
80b5fa20fe
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue