Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to delete a specific label from an issue in a repository hosted on a Gitea instance. It is useful when you want to manage issue labels programmatically, for example, removing outdated or incorrect labels from issues as part of an automated workflow.

Practical examples include:

  • Automatically cleaning up labels after an issue is resolved.
  • Removing labels that no longer apply based on changes in issue status or content.
  • Integrating with other automation tools to maintain consistent labeling standards.

Properties

Name Meaning
Owner The owner (user or organization) of the repository where the issue label exists.
Repo The name of the repository containing the issue label.
Id The numeric ID of the label to be deleted from the issue.

Output

The node outputs JSON data representing the result of the delete label operation. Typically, this will confirm whether the deletion was successful or provide error details if it failed.

No binary data output is involved in this operation.

Dependencies

  • Requires connection to a Gitea instance via its API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL of the Gitea server must be set in the credentials configuration.

Troubleshooting

  • Common Issues:

    • Incorrect repository owner or name can cause "not found" errors.
    • Providing an invalid or non-existent label ID will result in failure to delete.
    • Authentication failures if the API token is missing or invalid.
    • Network connectivity issues to the Gitea server.
  • Error Messages and Resolutions:

    • 404 Not Found: Verify the owner, repo, and label ID are correct.
    • 401 Unauthorized: Check that the API token credential is properly configured and has sufficient permissions.
    • Network Errors: Ensure the Gitea server URL is reachable from the n8n environment.

Links and References

Discussion