GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve information about a specific npm package within a GitLab project. It is useful for automating workflows that require fetching package details from GitLab projects, such as CI/CD pipelines, package management automation, or project monitoring.

Use Case Examples

  1. Retrieve details of an npm package named 'mypackage' from a GitLab project identified by its ID or URL-encoded path.
  2. Automate the process of checking package versions or metadata within GitLab projects.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Parameters to include in the query string of the request, specifically the npm package name to retrieve.
Path Parameters Parameters to include in the path of the request URL, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • package_name - The name of the npm package to retrieve.
  • package_details - The details of the npm package retrieved from the GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible with the provided credentials.
  • Verify that the package name is correctly specified and exists in the project.
  • Check network connectivity and GitLab API availability.
  • Authentication errors may occur if the API token is invalid or lacks necessary permissions.

Links

Discussion