From 0a1e5c8ea4b390428697f4cb9ee3e4345484c437 Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Wed, 18 Dec 2024 18:33:51 +0300 Subject: [PATCH] #19 change post to patch --- internal/source/gitea/gitea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/source/gitea/gitea.go b/internal/source/gitea/gitea.go index 4900198..0bcbed7 100644 --- a/internal/source/gitea/gitea.go +++ b/internal/source/gitea/gitea.go @@ -612,7 +612,7 @@ func (g *Gitea) patchPullRequest(ctx context.Context, wBody, wTitle *bytes.Buffe g.logger.Info(ctx, fmt.Sprintf("marshal body: %s", buf)) req, err := http.NewRequestWithContext( ctx, - http.MethodPost, + http.MethodPatch, fmt.Sprintf("https://%s/api/v1/repos/%s/%s/pulls/%d", g.URL, g.Owner, g.Repository, indexPR), bytes.NewReader(buf), )