GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidMergeRef

AI-generated

Summary

Call the GitLab API to retrieve the merge reference information for a specific merge request in a given project using REST methods.

Inputs

  • Skip Authentication — Boolean to skip authentication; defaults to false (authentication used).
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • Method (required) — The HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH), default is GET.
  • Id (required) — The ID or URL-encoded path of the project containing the merge request.
  • Merge_request_iid (required) — The internal ID (IID) of the merge request within the project.

Output shape

a single JSON object representing the merge reference of the specified merge request as returned by GitLab's API.

The returned data shape depends on the GitLab API's response at the /api/v4/projects/{id}/merge_requests/{merge_request_iid}/merge_ref endpoint. Authentication is required unless explicitly skipped. The operation supports multiple HTTP methods, but GET is default and typical for retrieving merge ref info.

Links

Discussion