Improve Checks for Same Author (#502)
[COMBINE] commits = ["ce5272fcf17b617495f05de102cf39dc23aece95"] [COMBINE] [FIXUP] [[fixes]] sha = "ce5272fcf17b617495f05de102cf39dc23aece95" newTitle = "Changelog Improvements (#466)" newBody = "[INTERNAL]" [[fixes]] sha = "3b03b11b7d2cebe3595a38ad2cccc37b38e2c1b9" newTitle = "Update Custom Main Menu Per Update (#468)" newBody = """ [COMBINE] commits = [\"ce5272fcf17b617495f05de102cf39dc23aece95\"] [COMBINE] """ [[fixes]] sha = "21037b17f3e1174d581a95ab4462025ac87f699d" newTitle = "Add More Ignore Tag Options (#500)" newBody = """ [COMBINE] commits = [\"ce5272fcf17b617495f05de102cf39dc23aece95\"] [COMBINE] """ [[fixes]] sha = "5d557b642477aed767b0a4207d123453f3ea46e3" newTitle = "Implement Ignore Tag (#481)" newBody = """ [COMBINE] commits = [\"ce5272fcf17b617495f05de102cf39dc23aece95\"] [COMBINE] """ [[fixes]] sha = "542655bcfb3437656495a0f6941dc931bac76bc5" newTitle = "Allow for Multiple Changelogs (#488)" newBody = """ [COMBINE] commits = [\"ce5272fcf17b617495f05de102cf39dc23aece95\"] [COMBINE] """ [[fixes]] sha = "2a0f5eab525c7f9b29ace0c003c95ef44160af05" newTitle = "Fix Workflows Pushing to Main (#465)" newBody = """ [COMBINE] commits = [\"fbd1584e7baed4a3603e3c810066603185f1b230\"] [COMBINE] """ [[fixes]] sha = "e2aac147e539f48b01e702a24fba8e6fa6666861" newTitle = "Fix Non Release Commit Workflow (#464)" newBody = """ [COMBINE] commits = [\"fbd1584e7baed4a3603e3c810066603185f1b230\"] [COMBINE] """ [[fixes]] sha = "7a6a147006dbc6fca439e6fc4c1bff8f3d4e1c9d" newTitle = "Fix Parsing Complex Bodies in GitHub Commits (#460)" newBody = """ [COMBINE] commits = [\"fbd1584e7baed4a3603e3c810066603185f1b230\"] [COMBINE] """ [[fixes]] sha = "8fc1c45080f3247f973308aa8824629b98b18a91" newTitle = "Fix Draconic Evolution Crash (#484)" newBody = """ [BUG] [IGNORE] checks = { compareNot = \"1.7-alpha-1\" } [IGNORE] """ [FIXUP]
This commit is contained in:
parent
21037b17f3
commit
123adfeccb
@ -191,11 +191,15 @@ function formatChangelogMessage(changelogMessage: ChangelogMessage, subMessage =
|
|||||||
|
|
||||||
const formattedCommits: string[] = [];
|
const formattedCommits: string[] = [];
|
||||||
const authors: string[] = [];
|
const authors: string[] = [];
|
||||||
|
const authorEmails: Set<string> = new Set<string>();
|
||||||
const processedSHAs: Set<string> = new Set<string>();
|
const processedSHAs: Set<string> = new Set<string>();
|
||||||
|
|
||||||
commits.forEach((commit) => {
|
commits.forEach((commit) => {
|
||||||
if (processedSHAs.has(commit.hash)) return;
|
if (processedSHAs.has(commit.hash)) return;
|
||||||
if (!authors.includes(commit.author_name)) authors.push(commit.author_name);
|
if (!authors.includes(commit.author_name) && !authorEmails.has(commit.author_email)) {
|
||||||
|
authors.push(commit.author_name);
|
||||||
|
authorEmails.add(commit.author_email);
|
||||||
|
}
|
||||||
formattedCommits.push(`[\`${commit.hash.substring(0, 7)}\`](${repoLink}commit/${commit.hash})`);
|
formattedCommits.push(`[\`${commit.hash.substring(0, 7)}\`](${repoLink}commit/${commit.hash})`);
|
||||||
processedSHAs.add(commit.hash);
|
processedSHAs.add(commit.hash);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user