GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve a list of Go module package versions for a specific project. It is useful for developers or DevOps engineers who need to programmatically access Go package version information stored in GitLab projects. For example, it can be used to automate dependency management or monitor package versions in CI/CD pipelines.

Use Case Examples

  1. Retrieve all versions of a Go module named 'example-module' in a project with ID '12345'.
  2. Automate fetching Go package versions to update dependency files in a project.

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 key authentication.
baseUrl The base URL of the GitLab instance to send the API request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, defaulting to GET.
Query Parameters Query parameters for the API request, specifically the Go module name to list versions for.
Path Parameters Path parameters for the API request, specifically the project identifier.

Output

JSON

  • id - The project ID or full path of the project.
  • module_name - The name of the Go module queried.
  • versions - List of Go module package versions retrieved from the GitLab project.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or full path is correct to avoid 404 errors.
  • Verify the Go module name is accurate and exists in the project to get valid results.
  • Check authentication credentials if receiving authorization errors (401 or 403).
  • Confirm the base URL is correct if using a self-hosted GitLab instance.

Links

Discussion