From 88b2642dadf2442945fd1e51ea9475f831d37412 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 13 Feb 2025 22:27:27 +0100 Subject: [PATCH] chore: handle undefined author --- scripts/_utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/_utils.ts b/scripts/_utils.ts index fa28f92e25..257c0b02b3 100644 --- a/scripts/_utils.ts +++ b/scripts/_utils.ts @@ -145,6 +145,7 @@ export async function getContributors () { 'Authorization': `token ${process.env.GITHUB_TOKEN}`, }, }) + if (!author) { continue } if (!contributors.some(c => c.username === author.login)) { contributors.push({ name: commit.author.name, username: author.login }) }