GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the list of reviewers for a specific merge request in a GitLab project using the GitLab API v4. It is useful for scenarios where you need to programmatically access or manage the reviewers assigned to a merge request, such as in automated workflows for code review or project management.

Use Case Examples

  1. Fetch reviewers of a merge request to notify them via another system.
  2. Check if a merge request has assigned reviewers before merging.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request.
baseUrl Base URL of the GitLab instance to connect to.
Method HTTP method used for the API request.
Path Parameters Parameters used in the API request path to specify the project and merge request.

Output

JSON

  • reviewers - List of reviewers for the specified merge request.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and URL-encoded if necessary.
  • Verify that the API token or credentials have sufficient permissions to access merge request reviewers.
  • Check the base URL to ensure it points to the correct GitLab instance.

Links

Discussion