fixed 贡献者匹配用户email,名称区分
This commit is contained in:
parent
09b1007800
commit
8fbf1b4a35
|
@ -16,7 +16,7 @@ if user.present?
|
|||
json.login user.login
|
||||
json.email user.mail
|
||||
json.type user.type
|
||||
json.name user.real_name
|
||||
json.name (user["name"] || contributor["name"] || contributor["login"]).to_s.downcase
|
||||
json.image_url url_to_avatar(user)
|
||||
json.contribution_perc user.simple_contribution_perc(project, contributor["contribution_perc"]) if user.present?
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue