GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation resets the approvals on a specific merge request within a GitLab project. It is useful for scenarios where you need to clear all existing approvals on a merge request, for example, when significant changes have been made and a fresh review cycle is required.

Use Case Examples

  1. Reset approvals on a merge request after major code changes to ensure all reviewers re-approve.
  2. Clear approvals to restart the review process in a GitLab project merge request.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but for this operation it is PUT.
Path Parameters Parameters required in the URL path to identify the project and merge request to reset approvals for.

Output

JSON

  • statusCode - HTTP status code of the response indicating success or failure.
  • body - Response body containing details about the reset approvals operation.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified; incorrect values will cause the API call to fail.
  • Authentication errors may occur if the API key or token is invalid or missing; verify credentials are correctly configured.
  • Permission errors can happen if the authenticated user does not have rights to reset approvals on the specified merge request.

Links

Discussion