Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation retrieves the reactions for a specific comment on an issue within a repository hosted on a Gitea instance. It is useful when you want to analyze or display user engagement on issue comments by fetching all the emoji reactions associated with a particular comment.

Practical examples include:

  • Displaying the number and types of reactions on a comment in a project management dashboard.
  • Monitoring community feedback or sentiment on issue discussions.
  • Automating reports that summarize user interactions on issues.

Properties

Name Meaning
Owner The owner (user or organization) of the repository where the issue exists.
Repo The name of the repository containing the issue comment.
Id The unique identifier of the comment whose reactions are to be retrieved.

Output

The output contains a JSON array representing the reactions on the specified issue comment. Each item in the array typically includes details about the reaction type (such as emoji), the user who reacted, and possibly timestamps.

If the node supports binary data output, it would relate to any media attached to reactions, but based on the provided code and context, this node outputs only JSON data describing reactions.

Dependencies

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

Troubleshooting

  • Common Issues:

    • Incorrect repository owner or repo name will result in not found errors.
    • Providing an invalid comment ID may cause the node to return empty results or errors.
    • Authentication failures if the API token is missing or invalid.
    • Network connectivity issues to the Gitea server.
  • Error Messages:

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

Links and References

Discussion