fixed 增加从webhook接收仓库日志记录
This commit is contained in:
parent
e919b03e90
commit
4c7498a046
|
@ -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[:commits][0][:committer][:username]
|
||||
user_mail = params[:commits][0][:committer][:email]
|
||||
user = User.find_by(mail: user_mail)
|
||||
user = User.find_by(login: user_name) if user.blank?
|
||||
|
||||
|
|
Loading…
Reference in New Issue