mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
change hook create and update params
This commit is contained in:
@@ -51,12 +51,12 @@ class HooksController < ApplicationController
|
||||
# }
|
||||
# }
|
||||
|
||||
hook_params = params[:hook_params].compact
|
||||
hook_params = params[:hook_params]
|
||||
Gitea::Hooks::CreateService.new(@user, @repository.try(:identifier), hook_params).call #创建gitea的hook功能
|
||||
end
|
||||
|
||||
def update
|
||||
hook_params = params[:hook_params].compact
|
||||
hook_params = params[:hook_params]
|
||||
response = Gitea::Hooks::UpdateService.new(@user, @repository.try(:identifier), hook_params, params[:id]).call
|
||||
if response.status == 200
|
||||
normal_status(1, "更新成功")
|
||||
|
||||
Reference in New Issue
Block a user