Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to delete a reaction from a comment on an issue within a repository hosted on a Gitea instance. It is useful when you want to programmatically remove a specific emoji or reaction that was previously added to an issue comment, for example, to moderate feedback or correct accidental reactions.

Practical scenarios include:

  • Automating cleanup of reactions on issue comments based on certain conditions.
  • Managing community feedback by removing inappropriate or outdated reactions.
  • Integrating with workflows that adjust issue comment reactions dynamically.

Properties

Name Meaning
Owner The username or organization name that owns the repository where the issue comment exists.
Repo The name of the repository containing the issue comment.
Id The unique identifier of the comment from which the reaction should be deleted.
Content The type of reaction (emoji) to delete from the comment. This typically corresponds to reaction content like +1, heart, laugh, etc.

Output

The output JSON will contain the response from the Gitea API after attempting to delete the reaction. Typically, this will be an empty object or confirmation of successful deletion if the operation succeeds. No binary data is expected in the output.

Dependencies

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

Troubleshooting

  • Common issues:
    • Invalid or missing repository owner or repo name can cause "Not Found" errors.
    • Providing an incorrect comment ID or reaction content may result in failure to delete the reaction.
    • Insufficient permissions or invalid API token will lead to authorization errors.
  • Error messages:
    • 404 Not Found: Check that the owner, repo, and comment ID are correct and exist.
    • 401 Unauthorized: Verify that the API token is valid and has necessary scopes.
    • 400 Bad Request: Ensure the reaction content value is valid and supported by Gitea.

Links and References

Discussion