GitLab API icon

GitLab API

Gitlab

Actions917

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 in CI/CD pipelines, release management, or version tracking.

Use Case Examples

  1. Fetch details of a release tag in a GitLab project to automate deployment processes.
  2. Retrieve tag information to display version history in a custom dashboard.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, default is GET.
Path Parameters Parameters required in the API path to specify the project and tag name.

Output

JSON

  • id - Unique identifier of the tag.
  • name - Name of the tag.
  • message - Message associated with the tag, if any.
  • target - Commit SHA the tag points to.
  • commit
    • id - Commit ID associated with the tag.
    • short_id - Shortened commit ID.
    • title - Commit title or message.
    • author_name - Name of the commit author.
    • author_email - Email of the commit author.
    • created_at - Timestamp when the commit was created.
  • release
    • tag_name - Name of the release tag, if a release is associated.
    • description - Description of the release.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and tag name are correctly URL-encoded to avoid 404 errors.
  • Verify that the API key has sufficient permissions to access the project repository tags.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion