GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific tag from a GitLab project repository using the GitLab API. It is useful for managing and cleaning up tags in a project's repository, such as removing outdated or incorrect tags.

Use Case Examples

  1. Deleting a tag named 'v1.0' from a project with ID '12345' to clean up the repository.
  2. Removing a mistakenly created tag from a GitLab project repository.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the 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 to specify the project ID and tag name to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body from the GitLab API after attempting to delete the tag.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and tag name are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • HTTP 404 errors indicate the project or tag was not found; check the inputs.
  • HTTP 403 errors indicate insufficient permissions to delete the tag; ensure the API key has the required access rights.

Links

Discussion