Method: Gitlab::Client::PipelineTriggers#update_trigger

Defined in:
lib/gitlab/client/pipeline_triggers.rb

#update_trigger(project, trigger_id, options = {}) ⇒ Gitlab::ObjectifiedHash

Update a project trigger

Examples:

Gitlab.update_trigger(5, 1, description: "my description")

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • trigger_id (Integer)

    The trigger ID.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :description (String)

    The trigger name.

Returns:

[View source]

53
54
55
# File 'lib/gitlab/client/pipeline_triggers.rb', line 53

def update_trigger(project, trigger_id, options = {})
  put("/projects/#{url_encode project}/triggers/#{trigger_id}", body: options)
end