summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/user.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-13 21:28:04 +0200
committerValery Sizov <valery@gitlab.com>2016-12-13 21:28:07 +0200
commite39f024029b46322c1bf24409fd5ce7bfcef2da5 (patch)
tree52664136981b70c409f2cfb8e43235596821eb19 /lib/bitbucket/representation/user.rb
parent0057ed1e69bc203d82fd3e8dfa6db7ea6a9b1de7 (diff)
downloadgitlab-ce-e39f024029b46322c1bf24409fd5ce7bfcef2da5.tar.gz
BB importer: Adding created_by only when used is not found[ci skip]
Diffstat (limited to 'lib/bitbucket/representation/user.rb')
-rw-r--r--lib/bitbucket/representation/user.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bitbucket/representation/user.rb b/lib/bitbucket/representation/user.rb
index ba6b7667b49..6025a9f0653 100644
--- a/lib/bitbucket/representation/user.rb
+++ b/lib/bitbucket/representation/user.rb
@@ -2,7 +2,11 @@ module Bitbucket
module Representation
class User < Representation::Base
def username
- raw['username']
+ raw['username'] || 'Anonymous'
+ end
+
+ def uuid
+ raw['uuid']
end
end
end