Update gitea hooks api
This commit is contained in:
parent
5cc5404915
commit
a8821de85f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue