Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API to retrieve the content of a specific blob object from a repository. The "Get Blob" operation under the "Repository" resource fetches the raw data of a file or directory at a particular commit SHA in a given repository.

Common scenarios for this node include:

  • Retrieving the contents of a file at a specific commit for analysis or processing.
  • Accessing historical versions of files in a repository.
  • Automating workflows that require fetching source code or configuration files from a Gitea repository.

For example, you might use this node to get the README file content at a certain commit to display it in a dashboard or to verify file integrity during CI/CD pipelines.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository from which to fetch the blob.
Sha The SHA hash of the commit or blob object to retrieve.

Output

The node outputs JSON data representing the blob content retrieved from the specified repository and commit SHA. This typically includes the raw file content encoded as per the Gitea API response (often base64 encoded if binary). If the blob is binary data, the node may output it accordingly, but primarily the output is JSON containing the blob details and content.

Dependencies

  • Requires an active connection to a Gitea instance via its API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL of the Gitea server must be provided in the credentials configuration.

Troubleshooting

  • Invalid Owner/Repo/Sha: Errors may occur if the owner, repository name, or SHA is incorrect or does not exist. Verify these values carefully.
  • Authentication errors: Ensure the API token credential is valid and has sufficient permissions to access the repository.
  • Network issues: Connectivity problems with the Gitea server will cause request failures.
  • Blob not found: If the SHA does not correspond to a blob object, the API will return an error; confirm the SHA points to a valid blob.

Links and References

Discussion