// EditRepoHook modify one hook of a repository, with hook id and options
EditRepoHook modify one hook of a repository, with hook id and options
// EditRepoHook modify one hook of a repository with hook id and options
func (c *Client) EditRepoHook(user, repo string, id int64, opt structs.EditHookOption) error {
	body, err := json.Marshal(&opt)
	if err != nil {
		return err
	}
	_, err = c.getResponse("PATCH", fmt.Sprintf("/repos/%s/%s/hooks/%d", user, repo, id), jsonHeader, bytes.NewReader(body))
	return err
}
func ( c * Client ) EditRepoHook ( user , repo string , id int64 , opt structs . EditHookOption ) error { body , err := json . Marshal ( & opt ) if err != nil { return err } _ , err = c . getResponse ( " " , fmt . Sprintf ( " " , user , repo , id ) , jsonHeader , bytes . NewReader ( body ) ) return err }
EditRepoHook modify one hook of a repository, with hook id and options
EditRepoHook modify one hook of a repository with hook id and options