Fix typo in pull requests API (#172)
This commit is contained in:
parent
38803cbe75
commit
82f69ae35a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue