GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to unapprove a specific merge request within 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 manager can use this operation to unapprove a merge request to signal that it should not be merged until further review or modifications are made.

Use Case Examples

  1. Unapprove a merge request in a GitLab project to indicate it requires further changes before merging.
  2. Revoke approval on a merge request if an issue is found after initial approval.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path, including project ID and merge request IID.

Output

JSON

  • id - The ID of the project.
  • merge_request_iid - The internal ID of the merge request.
  • unapproved - Indicates the merge request has been unapproved.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to unapprove merge requests.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error: 401 Unauthorized - occurs if authentication fails; resolve by verifying API key.
  • Common error: 404 Not Found - occurs if the project or merge request does not exist; verify IDs.

Links

Discussion