GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the distribution tags of a specific npm package within a GitLab group using the GitLab API. It is useful for developers or DevOps engineers who want to programmatically access metadata about npm packages hosted in GitLab groups, such as checking available version tags for deployment or automation purposes.

Use Case Examples

  1. Fetching the dist-tags of an npm package named 'my-package' in a GitLab group with ID '12345' to verify the latest version before deployment.
  2. Automating the retrieval of npm package tags to integrate with CI/CD pipelines for version management.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making 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 to use for the API request, default is GET.
Query Parameters Query parameters for the API request, specifically the package name to retrieve dist-tags for.
Path Parameters Path parameters for the API request, specifically the group ID.

Output

JSON

  • distTags - The distribution tags of the npm package retrieved from the GitLab API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and package name are correctly URL-encoded and valid to avoid 404 errors.
  • If authentication is required, verify that the GitLab API key credential is correctly configured and has sufficient permissions.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion