Module: Octokit::Client::Hooks

Included in:
Octokit::Client
Defined in:
lib/octokit/client/hooks.rb

Overview

Methods for the Hooks API

Instance Method Summary collapse

Instance Method Details

#available_hooks(options = {}) ⇒ Sawyer::Resource

List all Service Hooks supported by GitHub

Examples:

List all hooks

Octokit.available_hooks

Returns:

  • (Sawyer::Resource)

    A list of all hooks on GitHub



12
13
14
# File 'lib/octokit/client/hooks.rb', line 12

def available_hooks(options = {})
  get "hooks", options
end