Method: Github::Client::Repos::Hooks#edit

Defined in:
lib/github_api/client/repos/hooks.rb

#edit(*args) ⇒ Object

Edit a hook

Examples:

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

Parameters:



159
160
161
162
163
164
165
166
# File 'lib/github_api/client/repos/hooks.rb', line 159

def edit(*args)
  arguments(args, required: [:user, :repo, :id]) do
    permit VALID_HOOK_PARAM_NAMES, recursive: false
    assert_required REQUIRED_PARAMS
  end

  patch_request("/repos/#{arguments.user}/#{arguments.repo}/hooks/#{arguments.id}", arguments.params)
end