GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves details of a specific tag from a GitLab project's repository using the GitLab API. It is useful for scenarios where you need to fetch metadata or information about a particular tag in a project's repository, such as for deployment automation, version tracking, or release management.

Use Case Examples

  1. Fetch details of a tag named 'v1.0' in a project with ID '12345' to verify the tag's commit information before deployment.
  2. Retrieve tag information to display in a dashboard showing the latest tags for a project repository.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and tag name for the API request.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • tag_name - The name of the tag.
  • commit - Details about the commit the tag points to.
  • message - Tag message or description.
  • release - Release information associated with the tag.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and tag name are correctly URL-encoded to avoid 404 errors.
  • If authentication is skipped, the request may fail due to lack of permissions.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion