GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve information about a specific npm package within a GitLab project. It is useful for developers or DevOps engineers who want to programmatically access npm package details stored in a GitLab project repository. For example, it can be used to automate package version checks or integrate package data retrieval into CI/CD pipelines.

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 fetching npm package metadata for auditing or deployment purposes.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated requests.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Parameters sent in the query string of the request, specifically the npm package name to retrieve.
Path Parameters Parameters included in the URL path, 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.
  • packageDetails - The detailed information about the npm package returned 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 the package name is accurate and exists in the specified project.
  • Check that the base URL is correct for the GitLab instance being accessed.
  • If skipping authentication, ensure the endpoint supports unauthenticated access, otherwise authentication errors will occur.

Links

Discussion