mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
修改hooks_controller
This commit is contained in:
@@ -16,6 +16,7 @@ class HooksController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
#根据gitea的api
|
||||||
# hook_params = {
|
# hook_params = {
|
||||||
# active: true,
|
# active: true,
|
||||||
# type: "gitea",
|
# type: "gitea",
|
||||||
@@ -27,6 +28,7 @@ class HooksController < ApplicationController
|
|||||||
# },
|
# },
|
||||||
# events: ["create", "pull", "push"],
|
# events: ["create", "pull", "push"],
|
||||||
# }
|
# }
|
||||||
|
#根据gitea上hook的字段测试的
|
||||||
# hook_params = {
|
# hook_params = {
|
||||||
# is_active: params[:is_active] || false,
|
# is_active: params[:is_active] || false,
|
||||||
# type: params[:type],
|
# type: params[:type],
|
||||||
|
|||||||
Reference in New Issue
Block a user