GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific dist-tag from an NPM package within a GitLab project. It is useful for managing package versions by removing outdated or incorrect distribution tags from packages hosted in GitLab's package registry. For example, a user can remove a 'beta' tag from a package version that is no longer in testing.

Use Case Examples

  1. Deleting a 'latest' dist-tag from an NPM package in a GitLab project to prevent it from being the default version.
  2. Removing a deprecated 'beta' tag from a package to clean up the package metadata.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant here.
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 project 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 authentication credential

Troubleshooting

  • Ensure the project ID, package name, and tag are correctly specified; incorrect values will cause the API call to fail.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials are properly configured.
  • HTTP method must be DELETE to successfully remove the dist-tag; using other methods will not perform the deletion.

Links

Discussion