#19 change post to patch

This commit is contained in:
Gorbunov Kirill Andreevich 2024-12-18 18:33:51 +03:00
parent 950055d525
commit 0a1e5c8ea4

View File

@ -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),
)