Module Gitlab::Client::SystemHooks
In: lib/gitlab/client/system_hooks.rb

Methods

Public Instance methods

Adds a new system hook.

@example

  Gitlab.add_hook('http://example.com/hook')
  Gitlab.add_system_hook('https://api.example.net/v1/hook')

@param [String] url The hook URL. @return [Gitlab::ObjectifiedHash]

add_system_hook(url)

Alias for add_hook

Deletes a new system hook.

@example

  Gitlab.delete_hook(3)
  Gitlab.delete_system_hook(12)

@param [Integer] id The ID of a system hook. @return [Gitlab::ObjectifiedHash]

delete_system_hook(id)

Alias for delete_hook

Tests a system hook.

@example

  Gitlab.hook(3)
  Gitlab.system_hook(12)

@param [Integer] id The ID of a system hook. @return [Array<Gitlab::ObjectifiedHash>]

Gets a list of system hooks.

@example

  Gitlab.hooks
  Gitlab.system_hooks

@param [Hash] options A customizable set of options. @option options [Integer] :page The page number. @option options [Integer] :per_page The number of results per page. @return [Array<Gitlab::ObjectifiedHash>]

system_hook(id)

Alias for hook

system_hooks(options={})

Alias for hooks

[Validate]