#19 #20
@ -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))
|
g.logger.Info(ctx, fmt.Sprintf("marshal body: %s", buf))
|
||||||
req, err := http.NewRequestWithContext(
|
req, err := http.NewRequestWithContext(
|
||||||
ctx,
|
ctx,
|
||||||
http.MethodPost,
|
http.MethodPatch,
|
||||||
fmt.Sprintf("https://%s/api/v1/repos/%s/%s/pulls/%d", g.URL, g.Owner, g.Repository, indexPR),
|
fmt.Sprintf("https://%s/api/v1/repos/%s/%s/pulls/%d", g.URL, g.Owner, g.Repository, indexPR),
|
||||||
bytes.NewReader(buf),
|
bytes.NewReader(buf),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user