GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve information about a specific npm package from the GitLab package registry. It is useful for scenarios where you need to fetch metadata or details about an npm package hosted on GitLab, such as package version, dependencies, or other package-related information. For example, it can be used in CI/CD pipelines to verify package details before deployment or in automation workflows to monitor package updates.

Use Case Examples

  1. Fetch details of an npm package named 'mypackage' from GitLab's package registry.
  2. Use the node to get package metadata for validation or reporting purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Collection of query parameters for the API request, including the package name to fetch.

Output

JSON

  • package_name - The name of the npm package requested.
  • package_details - Details and metadata of the npm package retrieved from GitLab.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the package_name query parameter is provided and correctly spelled; missing or incorrect package names will result in API errors.
  • If authentication is enabled, verify that the GitLab API credential is valid and has sufficient permissions to access the package registry.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion