Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve a specific release attachment from a repository. It is useful when you want to programmatically access files or assets attached to a particular release in a Gitea repository. For example, you might use this node to download release binaries, changelogs, or other artifacts associated with a software release.

Properties

Name Meaning
Owner The owner of the repository (usually a username or organization name).
Repo The name of the repository from which to get the release attachment.
Id The ID of the release to which the attachment belongs.
Attachment Id The ID of the specific attachment file to retrieve from the release.

Output

The node outputs JSON data representing the requested release attachment. This typically includes metadata about the attachment and may include the attachment content or a link to it. If the attachment is binary (e.g., an executable or archive), the node can handle binary data output accordingly, allowing further processing or downloading within n8n workflows.

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 API being accessible and the user having permission to access the specified repository and release.

Troubleshooting

  • Common issues:

    • Invalid or missing repository owner or name will cause the API call to fail.
    • Incorrect release ID or attachment ID will result in "not found" errors.
    • Authentication failures if the API key or credentials are incorrect or expired.
    • Network connectivity problems to the Gitea server.
  • Error messages and resolutions:

    • 404 Not Found: Verify that the owner, repo, release ID, and attachment ID are correct.
    • 401 Unauthorized: Check that the API key credential is valid and has sufficient permissions.
    • Network errors: Ensure the Gitea server URL is reachable from the n8n environment.

Links and References

Discussion