class Github::Repos::Hooks

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


github.repos.hooks.test '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(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
  post_request("/repos/#{user}/#{repo}/hooks/#{hook_id}/test", params)
end