GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves information about a specific Go module version package from a GitLab project. It is useful for developers or CI/CD pipelines that need to fetch metadata about Go modules hosted in GitLab projects, such as version details or module info.

Use Case Examples

  1. A developer wants to get details about version 1.2.3 of a Go module named 'example-module' in a GitLab project with ID '123'.
  2. A CI/CD pipeline fetches Go module version info to verify dependencies before building a project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if not skipping authentication.
baseUrl The base URL of the GitLab instance to send the request to.
Method The HTTP method to use for the request.
Query Parameters Query parameters for the API request, specifically the Go module name.
Path Parameters Path parameters for the API request, including the project ID and Go module version.

Output

JSON

  • id - The project ID or full path of the project.
  • module_name - The name of the Go module.
  • module_version - The version of the Go module.
  • info - Information about the Go module version retrieved from the GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and module version are correctly specified and exist in the GitLab instance.
  • Verify that the Go module name is accurate and matches the module stored in the project.
  • If authentication is required, ensure the GitLab API credentials are valid and have sufficient permissions.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion