Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically allowing users to create an attachment for a release in a repository. It is useful when you want to programmatically add files or links as attachments to a specific release of a repository hosted on Gitea. For example, after creating a release, you might want to attach additional assets such as binaries, documentation, or other relevant files.

Properties

Name Meaning
Owner The owner (user or organization) of the repository where the release exists.
Repo The name of the repository in which the release is located.
Id The numeric ID of the release to which the attachment will be added.
Name The name of the attachment being created; this is sent as a query parameter named "name".

Output

The node outputs JSON data representing the response from the Gitea API after creating the release attachment. This typically includes details about the newly created attachment such as its URL, ID, and metadata. There is no indication that binary data is output by this node.

Dependencies

  • Requires a configured API authentication credential for Gitea.
  • Needs the base URL of the Gitea instance set in the credentials.
  • Depends on the Gitea REST API endpoint /api/v1 for repository release attachments.

Troubleshooting

  • Common issues:
    • Incorrect or missing API credentials can cause authentication failures.
    • Providing an invalid repository owner, repo name, or release ID will result in errors indicating the resource was not found.
    • Omitting the required "Name" property or providing it incorrectly may cause the attachment creation to fail or behave unexpectedly.
  • Error messages:
    • Authentication errors usually indicate invalid or missing API tokens.
    • 404 errors suggest the specified repository, release, or owner does not exist.
    • Validation errors may occur if required parameters are missing or malformed.

Links and References

Discussion