#19 change post to patch
This commit is contained in:
parent
950055d525
commit
0a1e5c8ea4
@ -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),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user