GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific release from a GitLab project using the GitLab API. It targets a release identified by the project ID (or URL-encoded path) and the associated Git tag name. This operation is useful for automating the removal of outdated or incorrect releases in a GitLab project.

Use Case Examples

  1. Automatically delete a release when a new version is published to keep the project clean.
  2. Remove a release associated with a specific tag after a rollback or hotfix deployment.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and release tag to delete.

Output

JSON

  • success - Indicates whether the release deletion was successful.
  • statusCode - HTTP status code returned by the API after the delete request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and tag name are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • The release may not exist or may have already been deleted, resulting in a 404 error from the API.

Links

Discussion