Method: Github::Client::Repos::Hooks#ping
- Defined in:
- lib/github_api/client/repos/hooks.rb
#ping(*args) ⇒ Object
Ping a hook
This will trigger a ping event to be sent to the hook.
195 196 197 198 199 |
# File 'lib/github_api/client/repos/hooks.rb', line 195 def ping(*args) arguments(args, required: [:user, :repo, :id]) post_request("/repos/#{arguments.user}/#{arguments.repo}/hooks/#{arguments.id}/pings", arguments.params) end |