Skip to content
代码片段 群组 项目
未验证 提交 ac46b300 编辑于 作者: Luke Duncalfe's avatar Luke Duncalfe 提交者: GitLab
浏览文件

Handle 404s when fetching GitHub user details

The GitHub API can return a `404` when we try to fetch the user's
details. We can see some errors when importing `rails/rails`.
Specifically for the user `Copilot`.

We already have a fallback of using the GitHub username as the source
user's name if we're unable to get the username from the API response.
https://gitlab.com/gitlab-org/gitlab/-/blob/331d2e9318220e6e229857aa4f0b7eb49e1e87ed/lib/gitlab/github_import/user_finder.rb#L133

This change does the same if we receive a `404` from the GitHub API.
上级 de8e5743
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册