20 lines
610 B
Ruby
20 lines
610 B
Ruby
user = $redis_cache.hgetall("v2-owner-common:#{contributor["name"]}-#{contributor["email"]}")
|
|
if user.blank?
|
|
json.contributions contributor["commits"]
|
|
# json.id contributor["id"]
|
|
json.login contributor["name"]
|
|
json.email contributor["email"]
|
|
json.type nil
|
|
json.name contributor["name"]
|
|
json.image_url User::Avatar.get_letter_avatar_url(contributor["name"])
|
|
else
|
|
json.contributions contributor["commits"]
|
|
json.id user["id"]
|
|
json.login user["login"]
|
|
json.email user["email"]
|
|
json.name user["name"]
|
|
json.type user["type"]
|
|
json.name user["name"]
|
|
json.image_url user["avatar_url"]
|
|
end
|