Browse Source

fixed 贡献者匹配用户email,名称区分

pull/343/head
xxq250 3 years ago
parent
commit
8fbf1b4a35
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/_contributor.json.jbuilder

+ 1
- 1
app/views/repositories/_contributor.json.jbuilder View File

@@ -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…
Cancel
Save