From e5057dcd86bafd2b1525208518dc392314392fe3 Mon Sep 17 00:00:00 2001 From: viletyy Date: Thu, 23 Jun 2022 15:04:55 +0800 Subject: [PATCH] add: patch action to request --- lib/gitea/api/http.rb | 4 ++++ 1 file changed, 4 insertions(+) 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