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