mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
fixed 增加从webhook接收仓库日志记录
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user