Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list files of a specific package version. It is useful when you want to retrieve detailed information about the contents of a package hosted in a Gitea instance, such as for auditing, deployment automation, or integration with other systems.

A practical example would be automating the retrieval of all files included in a particular release package to verify its contents before deployment or distribution.

Properties

Name Meaning
Owner The owner (user or organization) of the package.
Type The type/category of the package (e.g., npm, maven, etc.).
Name The name of the package.
Version The specific version of the package whose files you want to list.

Output

The node outputs JSON data representing the list of files contained in the specified package version. Each item in the output typically includes file metadata such as filename, size, and possibly download URLs or checksums depending on the API response.

If the package files include binary content references, those are represented as metadata or links rather than raw binary data within the output.

Dependencies

  • Requires access to a Gitea instance with API enabled.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL for the Gitea API must be set in the node credentials.

Troubleshooting

  • Authentication errors: Ensure the API token is valid and has sufficient permissions to access package data.
  • Invalid package details: Verify that the owner, type, name, and version fields are correctly specified; typos or incorrect values will result in not found errors.
  • Network issues: Confirm that the Gitea server URL is reachable from the n8n environment.
  • API changes: If the Gitea API version changes, the node might fail; check compatibility and update accordingly.

Links and References

Discussion