Closed Bricklou closed 4 months ago
Hey @Bricklou! 👋🏻
If the name
property can be undefined, if would be better to use name
and fallback to login
.
Something like:
{
name: body.name ?? body.login
}
Do you have any documentation with the available fields?
I did some researches to understand what fields were returned, the best i managed to find was the response schema from my second link.
As @RomainLanz mentioned, a fallback to login
seems reasonable in this case.
Has any fix already been done yet? Or should I open a Pull Request?
Please open a pull request
Package version
5.0.2
Describe the bug
Related to this discussion on discord: https://discord.com/channels/423256550564691970/785280284920643615/1228372633066799114 The user @kirs1748 has an issue related to the fact that he doesn't have any
name
on his profile, only alogin
.It means that when he tries to log in, Ally will fetch a null
name
(since there is none configured) instead of fetching the loginlogin
. (https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user)A possible fix would be to make field in Ally match like the following:
Reproduction repo
No response