Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation clears all labels from a specific issue in a repository hosted on a Gitea instance. It is useful when you want to remove all categorization or tags from an issue, effectively resetting its label state. For example, if an issue has outdated or incorrect labels, this operation can quickly clear them so new, relevant labels can be applied.

Properties

Name Meaning
Owner The owner of the repository (user or organization name)
Repo The name of the repository
Index The index (number) of the issue to clear labels from

Output

The output JSON will typically contain the updated issue data after clearing the labels. This includes the issue's current state without any labels attached. The exact structure depends on the Gitea API response but generally reflects the issue object with an empty labels array or equivalent field indicating no labels.

No binary data output is expected from this operation.

Dependencies

  • Requires access to a Gitea instance via its API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL for the Gitea API must be set in the node credentials.

Troubleshooting

  • Common issues:
    • Incorrect repository owner or name may cause "Not Found" errors.
    • Invalid or missing API credentials will result in authentication errors.
    • Specifying an invalid issue index (e.g., non-existent issue number) will cause the API to return an error.
  • Error messages:
    • 404 Not Found: Check that the owner, repo, and issue index are correct.
    • 401 Unauthorized: Verify that the API key/token is valid and has sufficient permissions.
    • 400 Bad Request: Ensure all required parameters are provided and correctly formatted.

Links and References

Discussion