Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to post a reaction to an existing comment on an issue within a specified repository. It is useful for automating feedback or acknowledgment workflows in development projects hosted on Gitea, such as adding emoji reactions to comments without manual intervention.

Practical examples include:

  • Automatically reacting with a thumbs-up emoji when a new comment is posted by a team member.
  • Adding specific reactions to comments based on certain triggers in your workflow automation.

Properties

Name Meaning
Owner The owner of the repository where the issue comment exists.
Repo The name of the repository containing the issue comment.
Id The numeric ID of the comment to which the reaction will be added.
Content The reaction content to add to the comment. This typically corresponds to an emoji code.

Output

The node outputs JSON data representing the result of the reaction posting operation. This usually includes details about the reaction that was created or any error information if the operation failed.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API being accessible and the user having permission to react to issue comments.

Troubleshooting

  • Common issues:

    • Invalid or missing repository owner or repo name can cause "Not Found" errors.
    • Incorrect comment ID may lead to failure in locating the comment.
    • Insufficient permissions or invalid API token will result in authorization errors.
    • Providing an unsupported reaction content value may cause the API to reject the request.
  • Error messages:

    • 404 Not Found: Check that the owner, repo, and comment ID are correct.
    • 401 Unauthorized: Verify that the API key credential is valid and has necessary scopes.
    • 400 Bad Request: Ensure the reaction content is valid according to Gitea's supported reactions.

Links and References

Discussion