From ef1023d0f5e37f66bcf5764b067444511d2843c4 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 20 May 2020 10:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9hooks=5Fcontroller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hooks_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/hooks_controller.rb b/app/controllers/hooks_controller.rb index 9a1e934af..f95488250 100644 --- a/app/controllers/hooks_controller.rb +++ b/app/controllers/hooks_controller.rb @@ -16,6 +16,7 @@ class HooksController < ApplicationController end def create + #根据gitea的api # hook_params = { # active: true, # type: "gitea", @@ -27,6 +28,7 @@ class HooksController < ApplicationController # }, # events: ["create", "pull", "push"], # } + #根据gitea上hook的字段测试的 # hook_params = { # is_active: params[:is_active] || false, # type: params[:type],