mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-19 16:01:24 +00:00
chore: handle undefined author
This commit is contained in:
parent
b71c6f1bf3
commit
0161985c0f
@ -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 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user