module Github::Repos::Hooks

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


@github.repos.test_hook 'user-name', 'repo-name', 'hook-id'
@github = Github.new
= Examples

This will trigger the hook with the latest push to the current repository.

Test a hook
def test_hook(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_keys(params)
  post("/repos/#{user}/#{repo}/hooks/#{hook_id}/test", params)
end