Update gitea hooks api

This commit is contained in:
Jasder 2020-09-07 11:23:09 +08:00
parent 5cc5404915
commit a8821de85f
3 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ class Gitea::Hooks::CreateService < Gitea::ClientService
private private
def params def params
Hash.new.merge(token: token, data: body).compact! Hash.new.merge(token: token, data: body).compact
end end
def url def url

View File

@ -17,7 +17,7 @@ class Gitea::Hooks::ListService < Gitea::ClientService
Hash.new.merge(token: token, Hash.new.merge(token: token,
page: params[:page], page: params[:page],
limit: params[:limit] limit: params[:limit]
).compact! ).compact
end end
def url def url

View File

@ -9,7 +9,7 @@ class Gitea::Hooks::UpdateService < Gitea::ClientService
end end
def call def call
response = patch(url, params) patch(url, params)
end end
private private