class Github::Repos::Hooks
def create(*args)
}
}
"url" => "http://something.com/webhook"
"config" => {
"active" => true,
"name" => "web",
github.repos.hooks.create 'user-name', 'repo-name',
github = Github.new
= Examples
* :active - Optional boolean - Determines whether the hook is actually triggered on pushes.
* :events - Optional array - Determines what events the hook is triggered for. 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
Create a hook
def create(*args) arguments(args, :required => [:user, :repo]) do sift VALID_HOOK_PARAM_NAMES, :recursive => false assert_required REQUIRED_PARAMS end post_request("/repos/#{user}/#{repo}/hooks", arguments.params) end