Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve detailed information about a specific repository by its unique identifier. It is useful when you need to fetch metadata or details of a particular repository hosted on a Gitea instance, such as for automation workflows that manage repositories, audit repository settings, or integrate repository data into other systems.

A practical example would be automating the retrieval of repository details before performing further actions like cloning, updating permissions, or generating reports based on repository attributes.

Properties

Name Meaning
Id The unique numeric identifier of the repository to retrieve. This is required to specify which repository's details should be fetched.

Output

The node outputs JSON data representing the full details of the requested repository. This typically includes fields such as repository name, description, owner information, visibility status, creation date, and other metadata provided by the Gitea API.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to a Gitea instance.
  • Needs an API authentication token credential configured in n8n to authorize requests against the Gitea API.
  • The base URL of the Gitea server must be set in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing repository ID will result in errors or empty responses.
    • Incorrect or expired API authentication token can cause authorization failures.
    • Network connectivity problems to the Gitea server will prevent successful API calls.
  • Error messages:

    • "Repository not found" indicates the specified ID does not exist or is inaccessible.
    • "Unauthorized" or similar errors suggest issues with API credentials.
  • Resolutions:

    • Verify the repository ID is correct and exists on the target Gitea instance.
    • Ensure the API token is valid and has sufficient permissions.
    • Check network access and the correctness of the Gitea server URL.

Links and References

Discussion