fix wrong url in delete org hook API (#179)
This commit is contained in:
parent
bd51a6c8a9
commit
7c9e05ef05
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func (c *Client) EditRepoHook(user, repo string, id int64, opt structs.EditHookO
|
||||||
|
|
||||||
// DeleteOrgHook delete one hook from an organization, with hook id
|
// DeleteOrgHook delete one hook from an organization, with hook id
|
||||||
func (c *Client) DeleteOrgHook(org string, id int64) error {
|
func (c *Client) DeleteOrgHook(org string, id int64) error {
|
||||||
_, err := c.getResponse("DELETE", fmt.Sprintf("/org/%s/hooks/%d", org, id), nil, nil)
|
_, err := c.getResponse("DELETE", fmt.Sprintf("/orgs/%s/hooks/%d", org, id), nil, nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue