Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve a specific attachment from an issue comment within a repository. It is useful when you need to programmatically access files or attachments that have been added to comments on issues in a Gitea-managed repository. For example, if a user wants to download or process an image or document attached to a comment on a bug report or feature request, this node can fetch that attachment directly.

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 ID of the comment on the issue from which to get the attachment.
Attachment Id The ID of the specific attachment to retrieve from the issue comment.

Output

The node outputs the retrieved attachment data. This typically includes the binary content of the attachment (such as an image, document, or other file types) along with metadata describing the attachment. The json output field will contain metadata about the attachment, while the binary output will hold the actual file content.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • The node depends on the Gitea REST API being accessible and the user having appropriate permissions to read issue comments and their attachments.

Troubleshooting

  • Common Issues:

    • Invalid or missing repository owner or name may cause "Not Found" errors.
    • Incorrect comment ID or attachment ID will result in failure to retrieve the attachment.
    • Insufficient permissions or invalid API credentials can lead to authorization errors.
    • Network connectivity problems to the Gitea server will prevent successful API calls.
  • Error Messages:

    • 404 Not Found: Check that the owner, repo, comment ID, and attachment ID are correct.
    • 401 Unauthorized or 403 Forbidden: Verify that the API key credential is valid and has sufficient permissions.
    • Network Errors: Ensure the Gitea server URL is reachable and correct in the credentials.

Links and References

Discussion