Fix typo in pull requests API (#172)

This commit is contained in:
ngourdon 2019-05-17 08:03:42 +02:00 committed by Lunny Xiao
parent 38803cbe75
commit 82f69ae35a

View file

@ -49,7 +49,7 @@ func (c *Client) EditPullRequest(owner, repo string, index int64, opt structs.Ed
return nil, err return nil, err
} }
pr := new(PullRequest) 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) jsonHeader, bytes.NewReader(body), pr)
} }