Use login instead of name field for pr author

This commit is contained in:
Mattias Granlund 2023-11-22 15:00:43 +01:00
parent b4f67aaa7a
commit 254c5084b7

View File

@ -46,7 +46,7 @@ export function ghResponseToInstance(
body: pr.body || undefined,
author: pr.user
? {
name: pr.user.name || 'unknown',
name: pr.user.login || 'unknown',
email: pr.user.email || 'unknown',
isBot: pr.user.type == 'bot',
gravatarUrl: new URL(pr.user.avatar_url)