GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific npm package distribution tag from a group in GitLab. It is useful for managing npm packages hosted in GitLab groups by removing outdated or incorrect distribution tags associated with a package. For example, if a package version tag is deprecated or needs to be removed for cleanup, this operation can be used to delete that tag.

Use Case Examples

  1. Deleting a dist-tag 'beta' from an npm package 'my-package' in a GitLab group with ID '123' to prevent users from installing the beta version.
  2. Removing a mistakenly added dist-tag from a package to maintain correct versioning in a GitLab group.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication Type of authentication used, default is GitLab API key authentication.
baseUrl Base URL for the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Query Parameters Query parameters for the request, specifically the package_name which is required.
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 delete operation response.
  • body - Response body from the GitLab API after deleting the dist-tag, typically empty or confirmation message.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID, package name, and tag are correctly specified; incorrect values will cause the API to return errors.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Permission errors can happen if the API key does not have sufficient rights to delete package tags in the specified group.

Links

Discussion