GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a protected tag from a specified project in GitLab using the GitLab API. It is useful for managing project tags by removing tags that are no longer needed or should no longer be protected. For example, a user can delete a protected tag named 'release-1-0' from a project identified by its ID or URL-encoded path.

Use Case Examples

  1. Deleting a protected tag 'release-1-0' from a project with ID '12345' to allow changes to that tag.
  2. Removing outdated or incorrect protected tags from a project to maintain tag hygiene.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used, 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 DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the project and the protected tag to delete.

Output

JSON

  • success - Indicates whether the protected tag was successfully deleted.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and protected tag name are correct and URL-encoded if necessary.
  • Check that the API key has sufficient permissions to delete protected tags in the project.
  • If authentication is skipped, the request will likely fail unless the GitLab instance allows unauthenticated access for this operation.

Links

Discussion