Method: Github::Client::Orgs::Hooks#edit

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

#edit(*args) ⇒ Object

Edit a hook

Examples:

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

Parameters:

See Also:



139
140
141
142
143
144
145
146
# File 'lib/github_api/client/orgs/hooks.rb', line 139

def edit(*args)
  arguments(args, required: [:org_name, :id]) do
    assert_required REQUIRED_PARAMS
  end

  patch_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}",
                arguments.params)
end