From 5b68f732bc9291852fa17d23efce3d0e3faaee65 Mon Sep 17 00:00:00 2001 From: "k.wakitani" Date: Wed, 25 Dec 2024 15:01:55 +0900 Subject: [PATCH] Tag the actual author of web commits fix #1289 --- src/functions/get-committer-login.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/functions/get-committer-login.ts b/src/functions/get-committer-login.ts index 163f3a43..9a7fff73 100644 --- a/src/functions/get-committer-login.ts +++ b/src/functions/get-committer-login.ts @@ -20,7 +20,10 @@ export async function getRecentCommitLogin(sha: string): Promise { page: 1 }) const commitData = commitResponse.data - lastCommitter = commitData.committer?.login || commitData.author?.login || commitData.commit?.committer?.name || commitData.commit?.author?.name + lastCommitter = commitData.committer?.login + if (!lastCommitter || lastCommitter === 'web-flow') { + lastCommitter = commitData.author?.login || commitData.commit?.committer?.name || commitData.commit?.author?.name + } assert.ok(lastCommitter, 'Committer cannot be empty.') } catch (err) { if (err instanceof Error) {