class Github::Repos::Hooks

def edit(user_name, repo_name, hook_id, params={})


}
"token" => "abc123"
"room" => "Commits",
"subdomain" => "github",
"config" => {
"active" => true,
"name" => "campfire",
github.repos.hooks.edit 'user-name', 'repo-name',
github = Github.new
= Examples

* :active - Optional boolean - Determines whether the hook is actually triggered on pushes.
* :remove_events - Optional array - Determines a list of events to be removed from the list of events that the Hook triggers for.
* :add_events - Optional array - Determines a list of events to be added to the list of events that the Hook triggers for.
* :events - Optional array - Determines what events the hook is triggered for. This replaces the entire array of events. Default: ["push"].
* :config - Required hash - A Hash containing key/value pairs to provide settings for this hook.
* :name - Required string - the name of the service that is being called.
= Inputs

Edit a hook
def edit(user_name, repo_name, hook_id, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  _validate_presence_of hook_id
  normalize! params
  filter! VALID_HOOK_PARAM_NAMES, params, :recursive => false
  assert_required_keys(REQUIRED_PARAMS, params)
  patch_request("/repos/#{user}/#{repo}/hooks/#{hook_id}", params)
end