module Octokit::Client::Hooks
def test_hook(repo, id, options = {})
- See: https://developer.github.com/v3/repos/hooks/#test-a-push-hook -
Returns:
-
(Boolean)
- Success
Parameters:
-
id
(Integer
) -- Id of the hook to test. -
repo
(Integer, String, Hash, Repository
) -- A GitHub repository.
def test_hook(repo, id, options = {}) boolean_from_response :post, "#{Repository.path repo}/hooks/#{id}/tests", options end