GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a list of Go module package versions for a specific project in GitLab. It is useful for developers or DevOps engineers who want to programmatically access Go package version information from a GitLab project, for example, to automate dependency management or monitor package versions.

Use Case Examples

  1. Fetch all versions of a Go module named 'example-module' in a project with ID '12345' to check for updates or automate deployment processes.
  2. Retrieve Go package versions to integrate with a CI/CD pipeline for version validation.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method to use for the API request.
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 ID or full path of the project.

Output

JSON

  • id - The project ID or full path of the project.
  • module_name - The name of the Go module.
  • versions - List of available versions of the Go module in the project.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and Go module name are correctly specified; otherwise, the API request will fail.
  • If authentication is required and skipped, the request will be unauthorized; verify the authentication settings.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion