summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/representation/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/github_import/representation/user.rb')
-rw-r--r--lib/gitlab/github_import/representation/user.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/representation/user.rb b/lib/gitlab/github_import/representation/user.rb
index e00dcfca33d..d97b90b6291 100644
--- a/lib/gitlab/github_import/representation/user.rb
+++ b/lib/gitlab/github_import/representation/user.rb
@@ -15,7 +15,11 @@ module Gitlab
#
# user - An instance of `Sawyer::Resource` containing the user details.
def self.from_api_response(user)
- new(id: user.id, login: user.login)
+ new(
+ id: user.id,
+ github_id: user.id,
+ login: user.login
+ )
end
# Builds a user using a Hash that was built from a JSON payload.