Method: Gitlab::Client::ResourceStateEvents#merge_request_state_event

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

#merge_request_state_event(project, merge_request_iid, id) ⇒ Object

Returns a single state event for a specific project merge request

Examples:

Gitlab.merge_request_state_event(5, 42, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • merge_request_iid (Integer)

    The IID of an merge request.

  • id (Integer)

    The ID of a state event.

Returns:

  • Gitlab::ObjectifiedHash



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

def merge_request_state_event(project, merge_request_iid, id)
  get("/projects/#{url_encode project}/merge_requests/#{merge_request_iid}/resource_state_events/#{id}")
end