GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific dist-tag from an NPM package in a GitLab repository. It is useful for managing package versions by removing outdated or incorrect tags associated with an NPM package. For example, if a tag like 'beta' or 'latest' needs to be removed from a package, this operation facilitates that action via the GitLab API.

Use Case Examples

  1. Removing a 'beta' dist-tag from an NPM package named 'my-package' to prevent users from installing a pre-release version.
  2. Deleting an incorrect or deprecated tag from an NPM package to maintain clean versioning in the GitLab package registry.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method used for the request, default is GET but can be set to DELETE for this operation.
Query Parameters Query parameters for the request, specifically the package name to identify the NPM package.
Path Parameters Path parameters for the request, specifically the tag name of the dist-tag to be deleted.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure.
  • body - Response body from the API call, typically empty for a successful delete operation.

Dependencies

  • GitLab API key credential for authentication.

Troubleshooting

  • Ensure the package name and tag parameters are correctly provided; missing or incorrect values will cause the API call to fail.
  • Authentication errors may occur if the API key is invalid or missing; verify credentials are correctly configured.
  • HTTP method must be set to DELETE to perform the delete operation; using other methods may result in errors.

Links

Discussion