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 within a repository. It is useful when you need to programmatically access files or attachments linked to issues in a Gitea-managed project. For example, you might use this node to download logs, screenshots, or other documents attached to an issue for further processing or archival.

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) identifying the specific issue within the repository.
Attachment Id The unique identifier of the attachment to retrieve from the issue.

Output

The node outputs the data of the requested issue attachment. This typically includes the binary content of the attachment file, allowing downstream nodes to process or save the file. The json output field will contain metadata about the attachment, while the binary data represents the actual file content.

Dependencies

  • Requires an API key credential to authenticate with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea API being accessible and the user having permission to read issues and their attachments.

Troubleshooting

  • Common Issues:
    • Invalid or missing API credentials can cause authentication failures.
    • Incorrect repository owner or name will result in "not found" errors.
    • Providing an invalid issue index or attachment ID may lead to errors indicating the resource does not exist.
  • Error Messages:
    • 401 Unauthorized: Check that the API key is valid and has sufficient permissions.
    • 404 Not Found: Verify the owner, repo, issue index, and attachment ID are correct.
    • Network Errors: Ensure the Gitea server URL is reachable from n8n.

Links and References

Discussion