Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list attachments of a specific comment on an issue within a repository. It is useful when you want to programmatically retrieve all files or media attached to a particular issue comment in a Gitea repository. For example, this can be used in automation workflows that archive or analyze attachments from issue discussions.

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 attachments you want to list.

Output

The output will contain a JSON array representing the attachments associated with the specified issue comment. Each attachment object typically includes metadata such as filename, size, URL, and possibly other descriptive fields depending on the Gitea API response.

If the node supports binary data output for attachments (e.g., actual file content), it would provide the binary data accordingly, but based on the provided code snippet, only JSON metadata output is evident.

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 v1 endpoints.

Troubleshooting

  • Invalid Owner/Repo/Id: Ensure the owner, repo, and comment ID are correct and exist in the Gitea instance.
  • Authentication Errors: Verify that the API key credential is valid and has sufficient permissions to access the repository and its issues.
  • Network Issues: Confirm that the Gitea server URL is reachable from the n8n environment.
  • Empty Attachments List: If no attachments are returned, verify that the comment actually contains attachments.

Links and References

Discussion