GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the approval details of a specific merge request within a GitLab project. It is useful for scenarios where you need to check the approval status or details of a merge request, such as in automated workflows for code review or deployment pipelines.

Use Case Examples

  1. Automatically fetch merge request approval status to decide if a deployment can proceed.
  2. Monitor merge request approvals to trigger notifications or further actions in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and merge request IID for the API call.

Output

JSON

  • approvals - Details of the approvals for the specified merge request, including approval status and approvers.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to access merge request approval information.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to this endpoint.

Links

Discussion