修改hooks_controller
This commit is contained in:
parent
1171afee50
commit
ef1023d0f5
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue