Set user name for known bots to fix their avatar tooltips

This commit is contained in:
Sergio Padrino 2024-01-30 13:30:31 +01:00
parent 5f99b5a249
commit 55706e82f1

View file

@ -93,8 +93,13 @@ const dotComBot = (login: string, id: number, integrationId: number) => {
const endpoint = getDotComAPIEndpoint()
const stealthHost = 'users.noreply.github.com'
return [
{ email: `${id}+${login}@${stealthHost}`, name: '', avatarURL, endpoint },
{ email: `${login}@${stealthHost}`, name: '', avatarURL, endpoint },
{
email: `${id}+${login}@${stealthHost}`,
name: login,
avatarURL,
endpoint,
},
{ email: `${login}@${stealthHost}`, name: login, avatarURL, endpoint },
]
}