// CreateRepoHook create one hook for a repository, with options
CreateRepoHook create one hook for a repository, with options
// CreateRepoHook create one hook for a repository with options
func (c *Client) CreateRepoHook(user, repo string, opt structs.CreateHookOption) (*Hook, error) {
	body, err := json.Marshal(&opt)
	if err != nil {
		return nil, err
	}
	h := new(Hook)
	return h, c.getParsedResponse("POST", fmt.Sprintf("/repos/%s/%s/hooks", user, repo), jsonHeader, bytes.NewReader(body), h)
}
func ( c * Client ) CreateRepoHook ( user , repo string , opt structs . CreateHookOption ) ( * Hook , error ) { body , err := json . Marshal ( & opt ) if err != nil { return nil , err } h := new ( Hook ) return h , c . getParsedResponse ( " " , fmt . Sprintf ( " " , user , repo ) , jsonHeader , bytes . NewReader ( body ) , h ) }
CreateRepoHook create one hook for a repository, with options
CreateRepoHook create one hook for a repository with options