GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific release in a GitLab project identified by the project ID or URL-encoded path and the Git tag associated with the release. It is useful for managing project releases by programmatically removing outdated or incorrect releases from a GitLab repository.

Use Case Examples

  1. Deleting a release from a GitLab project by specifying the project ID and the tag name of the release to be removed.
  2. Automating cleanup of releases in a CI/CD pipeline by deleting releases that are no longer needed.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key 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 DELETE is relevant for this operation.
Path Parameters Parameters for the API path including project ID and tag name of the release to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the release.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and tag name are correctly specified and URL-encoded if necessary.
  • Verify that the API key has sufficient permissions to delete releases in the specified project.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common error messages include 404 Not Found if the project or release does not exist, and 403 Forbidden if authentication or permissions are insufficient.

Links

Discussion