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={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo, hook_id
  normalize! params
  post_request("/repos/#{user}/#{repo}/hooks/#{hook_id}/test", params)
end