mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
fixed 增加从webhook接收仓库日志记录
This commit is contained in:
@@ -5,8 +5,8 @@ class CommitLogsController < ApplicationController
|
|||||||
ref = params[:ref]
|
ref = params[:ref]
|
||||||
commit_id = params[:commits][0][:id]
|
commit_id = params[:commits][0][:id]
|
||||||
message = params[:commits][0][:message]
|
message = params[:commits][0][:message]
|
||||||
user_name = params[:message][0][:committer][:username]
|
user_name = params[:commits][0][:committer][:username]
|
||||||
user_mail = params[:message][0][:committer][:email]
|
user_mail = params[:commits][0][:committer][:email]
|
||||||
user = User.find_by(mail: user_mail)
|
user = User.find_by(mail: user_mail)
|
||||||
user = User.find_by(login: user_name) if user.blank?
|
user = User.find_by(login: user_name) if user.blank?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user