GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific dist-tag from an NPM package within a GitLab group. It is useful for managing package versions by removing outdated or incorrect distribution tags from packages hosted in GitLab groups. For example, if a package version tag is no longer valid or needed, this operation can remove that tag to keep the package metadata clean and accurate.

Use Case Examples

  1. Deleting a 'beta' dist-tag from an NPM package named 'my-package' in a GitLab group with ID '12345'.
  2. Removing a deprecated version tag from a package to prevent its usage in deployments.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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.
Query Parameters Query parameters for the request, specifically the package name to identify the NPM package.
Path Parameters Path parameters for the request, including the group ID and the dist-tag to delete.

Output

JSON

  • statusCode - HTTP status code of the response indicating success or failure.
  • body - Response body from the GitLab API after attempting to delete the dist-tag.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID, package name, and tag are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • HTTP method must be DELETE to perform the deletion; using other methods may result in errors.
  • Check network connectivity and GitLab instance availability if requests fail.

Links

Discussion