module Gitlab::Client::SystemHooks
def add_hook(url, options = {})
-
(Gitlab::ObjectifiedHash)
-
Options Hash:
(**options)
-
:enable_ssl_verification
(boolean
) -- `false` will cause Gitlab to ignore invalid/unsigned certificate errors (default is `true`) -
:token
(String
) -- A secret token for Gitlab to send in the `X-Gitlab-Token` header for authentication.
Parameters:
-
options
(Hash
) -- Additional options, as allowed by Gitlab API, including but not limited to: -
url
(String
) -- The hook URL.
def add_hook(url, options = {}) post('/hooks', body: options.merge(url: url)) end