GitLab API

GitlabTool

Actions905

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 users need to programmatically check the approval status of merge requests in GitLab projects, such as in automated CI/CD pipelines or project management workflows.

Use Case Examples

  1. Checking if a merge request has the required approvals before merging.
  2. Automating notifications based on the approval state of merge requests.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to 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 authentication credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project's merge request approval state.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion