Update gitea hooks api
This commit is contained in:
parent
5cc5404915
commit
a8821de85f
|
@ -29,7 +29,7 @@ class Gitea::Hooks::CreateService < Gitea::ClientService
|
|||
|
||||
private
|
||||
def params
|
||||
Hash.new.merge(token: token, data: body).compact!
|
||||
Hash.new.merge(token: token, data: body).compact
|
||||
end
|
||||
|
||||
def url
|
||||
|
|
|
@ -17,7 +17,7 @@ class Gitea::Hooks::ListService < Gitea::ClientService
|
|||
Hash.new.merge(token: token,
|
||||
page: params[:page],
|
||||
limit: params[:limit]
|
||||
).compact!
|
||||
).compact
|
||||
end
|
||||
|
||||
def url
|
||||
|
|
|
@ -9,7 +9,7 @@ class Gitea::Hooks::UpdateService < Gitea::ClientService
|
|||
end
|
||||
|
||||
def call
|
||||
response = patch(url, params)
|
||||
patch(url, params)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue