GitLab API icon

GitLab API

Gitlab

Actions880

Overview

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

Use Case Examples

  1. Check the approval state of a merge request before merging it.
  2. Automate notifications based on the approval status of merge requests.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET.
Path Parameters Parameters required in the request path to identify the project and merge request.

Output

JSON

  • approval_state - The approval state details of the specified merge request.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided; otherwise, the request will fail.
  • Authentication errors may occur if the API key or token is invalid or missing.
  • Check the base URL if connecting to a self-hosted GitLab instance to avoid connection issues.

Links

Discussion