From 84d205cb57b67adc09b0308c8c45ab1211ad243f Mon Sep 17 00:00:00 2001 From: ClaytonTDM Date: Wed, 9 Oct 2024 03:06:11 -0400 Subject: [PATCH] fix web flow co-authoring Signed-off-by: ClaytonTDM --- game/cl.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/cl.html b/game/cl.html index 7a94aa9..5b69eb6 100644 --- a/game/cl.html +++ b/game/cl.html @@ -20,6 +20,7 @@ const itemText = document.createElement("pre"); const authorName = commit.commit.author.name; let committerName = commit.commit.committer.name; + const committerLogin = commit.committer.login; const commitMessage = commit.commit.message; const coAuthors = []; if (committerName === "GitHub Action") { @@ -30,7 +31,7 @@ while ((match = coAuthorRegex.exec(commitMessage)) !== null) { coAuthors.push(match[1]); } - if (committerName !== authorName) { + if (committerName !== authorName && !(committerName === "GitHub" && committerLogin === "web-flow")) { coAuthors.push(committerName); } let allAuthors;