From 82f69ae35a4d0953dc449c9bad39625b780a0866 Mon Sep 17 00:00:00 2001 From: ngourdon <31291059+ngourdon@users.noreply.github.com> Date: Fri, 17 May 2019 08:03:42 +0200 Subject: [PATCH] Fix typo in pull requests API (#172) --- gitea/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/pull.go b/gitea/pull.go index c10af0b..35794a9 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -49,7 +49,7 @@ func (c *Client) EditPullRequest(owner, repo string, index int64, opt structs.Ed return nil, err } pr := new(PullRequest) - return pr, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/%s/%s/issues/%d", owner, repo, index), + return pr, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/%s/%s/pulls/%d", owner, repo, index), jsonHeader, bytes.NewReader(body), pr) }