mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-21 16:55:57 +00:00
chore: handle undefined author
This commit is contained in:
parent
bcecb7ef50
commit
88b2642dad
@ -145,6 +145,7 @@ export async function getContributors () {
|
|||||||
'Authorization': `token ${process.env.GITHUB_TOKEN}`,
|
'Authorization': `token ${process.env.GITHUB_TOKEN}`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
if (!author) { continue }
|
||||||
if (!contributors.some(c => c.username === author.login)) {
|
if (!contributors.some(c => c.username === author.login)) {
|
||||||
contributors.push({ name: commit.author.name, username: author.login })
|
contributors.push({ name: commit.author.name, username: author.login })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user