GitLab API

GitlabTool

Actions1095

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidMergeRef

AI-generated

Summary

Retrieve the merge ref details of a specific merge request within a GitLab project using its project ID or URL-encoded path and the merge request's IID.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the project.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • method — HTTP method to use for the request; defaults to GET and typically should remain GET.
  • skipAuthentication — Whether to skip authentication for this request; defaults to false.

Output shape

a single JSON object representing the merge ref information of the specified merge request

Returns the API response from GET /projects/{id}/merge_requests/{merge_request_iid}/merge_ref endpoint without pagination. The output depends on GitLab's API format for merge ref details.

Links

Discussion