GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to add asset links to a specific release in a project. It is useful for automating the management of release assets, such as adding downloadable links or references to release notes. For example, it can be used in CI/CD pipelines to programmatically update release information after deployment.

Use Case Examples

  1. Adding a new asset link to a release after a successful build.
  2. Automating release management by updating release assets based on project changes.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public endpoints or testing.
Authentication Type of authentication used for the API call, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters for the API path, including project ID and release tag name.

Output

JSON

  • id - ID of the created asset link
  • name - Name of the asset link
  • url - URL of the asset link
  • link_type - Type of the link (e.g., other, runbook, image)
  • created_at - Timestamp when the asset link was created
  • updated_at - Timestamp when the asset link was last updated

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and tag name are correct and URL-encoded if necessary.
  • Verify that the API key has sufficient permissions to modify releases.
  • Check the base URL if using a self-hosted GitLab instance.
  • Common error messages include authentication failures, invalid project or tag identifiers, and permission denied errors. Resolving these typically involves verifying credentials, parameters, and access rights.

Links

Discussion