From 44c42fa636f61b782b914a290e872bbc79ae5b2c Mon Sep 17 00:00:00 2001 From: Mathias Bergqvist Date: Wed, 6 May 2026 22:36:37 +0200 Subject: [PATCH] feat(gitea): add DeleteJSONBody for delete-with-body requests --- internal/gitea/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/gitea/client.go b/internal/gitea/client.go index f948643..4957c3d 100644 --- a/internal/gitea/client.go +++ b/internal/gitea/client.go @@ -95,6 +95,10 @@ func (c *Client) DeleteJSON(ctx context.Context, path string) ([]byte, int, erro return c.do(ctx, http.MethodDelete, path, nil) } +func (c *Client) DeleteJSONBody(ctx context.Context, path string, body []byte) ([]byte, int, error) { + return c.do(ctx, http.MethodDelete, path, body) +} + type rawResponse struct { Body []byte Status int