GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve the approval state of a specific merge request within a project. It is useful for scenarios where you need to programmatically check the approval status of merge requests, such as in automated CI/CD pipelines, project management dashboards, or custom GitLab integrations.

Use Case Examples

  1. Check the approval state of a merge request before merging it automatically.
  2. Monitor merge request approvals to trigger notifications or other workflows.
  3. Integrate GitLab merge request approval status into a project management tool.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the API path to specify the project and merge request.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access the project's merge request approval state.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to this endpoint.

Links

Discussion