fix 提交日志提交用户信息不匹配
This commit is contained in:
parent
df7b91a8ba
commit
b5dfd83527
|
@ -5,8 +5,8 @@ class CommitLogsController < ApplicationController
|
|||
ref = params[:ref]
|
||||
commit_id = params[:commits][0][:id]
|
||||
message = params[:commits][0][:message]
|
||||
user_name = params[:message][0][:committer][:username]
|
||||
user_mail = params[:message][0][:committer][:email]
|
||||
user_name = params[:pusher][:login]
|
||||
user_mail = params[:pusher][:email]
|
||||
user = User.find_by(mail: user_mail)
|
||||
user = User.find_by(login: user_name) if user.blank?
|
||||
|
||||
|
|
Loading…
Reference in New Issue