chore: handle undefined author

This commit is contained in:
Daniel Roe 2025-02-13 22:27:27 +01:00
parent b71c6f1bf3
commit 0161985c0f
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -127,6 +127,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 })
}