Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to post a reaction on a specific issue within a repository. It is useful for automating feedback or acknowledgment workflows in software development projects hosted on Gitea. For example, you can automatically add a "thumbs up" reaction to an issue when certain conditions are met, helping teams track sentiment or approval without manual intervention.

Properties

Name Meaning
Owner The owner of the repository where the issue exists.
Repo The name of the repository containing the issue.
Index The index (number) of the issue to which the reaction will be posted.
Content The type of reaction content to post on the issue. Common options include emoji names like +1, heart, laugh, etc.

Output

The node outputs JSON data representing the result of posting the reaction to the issue. This typically includes details about the reaction created, such as its ID, content, and associated user or issue information. There is no binary output.

Dependencies

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

Troubleshooting

  • Common Issues:

    • Invalid or missing repository owner or name may cause "Not Found" errors.
    • Incorrect issue index can lead to failure if the issue does not exist.
    • Insufficient permissions or invalid API token will result in authorization errors.
    • Unsupported reaction content values may cause the API to reject the request.
  • Error Messages:

    • 404 Not Found: Verify that the owner, repo, and issue index are correct.
    • 401 Unauthorized: Check that the API key credential is valid and has necessary scopes.
    • 400 Bad Request: Ensure the reaction content value is one of the supported types by Gitea.

Links and References

Discussion