GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation creates a new repository tag in a specified GitLab project. It is useful for automating version control workflows by programmatically adding tags to project repositories, which can mark release points or important commits.

Use Case Examples

  1. Automatically create a new tag in a GitLab project repository after a successful build or deployment.
  2. Add tags to GitLab repositories to mark specific versions or milestones in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Select the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path where the tag will be created.

Output

JSON

  • id - The ID or URL-encoded path of the project where the tag is created.
  • tag_name - The name of the created tag.
  • message - The message associated with the tag, if any.
  • release - Release information related to the tag, if available.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to create tags in the project.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion