GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to unapprove a specific merge request in a GitLab project. It is useful in scenarios where a previously given approval on a merge request needs to be revoked, such as when changes are required or the approval was given in error. For example, a developer or project maintainer can use this operation to unapprove a merge request identified by its project ID and merge request IID.

Use Case Examples

  1. Unapprove a merge request in a GitLab project to revoke approval before merging.
  2. Revoke approval on a merge request when additional changes are requested.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters for the API path including project ID and merge request IID to identify the merge request to unapprove.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure.
  • body - Response body from the GitLab API, typically empty or containing confirmation of the unapproval action.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and merge request IID are correct and exist in the GitLab instance.
  • Verify that the authentication credentials are valid and have sufficient permissions to unapprove merge requests.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.

Links

Discussion