GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidReviewers

AI-generated

Summary

Retrieve the list of reviewers for a specific merge request in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • skipAuthentication — Optionally skip authentication for the request; by default, authentication is applied from the GitLab API credentials.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • method — The HTTP method to use; defaults to GET for this operation.

Output shape

a JSON array containing the reviewers of the specified merge request

The output corresponds to the response from GET /api/v4/projects/{id}/merge_requests/{merge_request_iid}/reviewers endpoint, listing users assigned as reviewers. No pagination or additional fields are indicated in this operation.

Examples

Example 1: Fetch reviewers of merge request IID 42 for project 'my-group/my-project'

Set 'id' to 'my-group/my-project' and 'merge_request_iid' to 42; keep authentication enabled with proper GitLab API credentials; use baseUrl as needed.

Links

Discussion