Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 82f69ae

Browse files
ngourdonlunny
authored andcommitted
Fix typo in pull requests API (#172)
1 parent 38803cb commit 82f69ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitea/pull.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (c *Client) EditPullRequest(owner, repo string, index int64, opt structs.Ed
4949
return nil, err
5050
}
5151
pr := new(PullRequest)
52-
return pr, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/%s/%s/issues/%d", owner, repo, index),
52+
return pr, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/%s/%s/pulls/%d", owner, repo, index),
5353
jsonHeader, bytes.NewReader(body), pr)
5454
}
5555

0 commit comments

Comments
 (0)