diff --git a/lib/gitea/api/http.rb b/lib/gitea/api/http.rb index 4617bce..b6525c2 100644 --- a/lib/gitea/api/http.rb +++ b/lib/gitea/api/http.rb @@ -30,6 +30,10 @@ module Gitea do_request('PUT', api_url, http_options, &block) end + def patch(api_url = '', http_options = {}, &block) + do_request('PATCH', api_url, http_options, &block) + end + def post(api_url = '', http_options = {}, &block) do_request('POST', api_url, http_options, &block) end