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. It is useful when you need to programmatically access metadata or configuration details of a repository hosted on a Gitea instance. Common scenarios include automation workflows that monitor repositories, gather statistics, or integrate repository data into other systems.

For example, you might use this node to fetch repository details before triggering a deployment pipeline or to display repository information in a custom dashboard.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository to retrieve information for.

Output

The node outputs JSON data representing the repository's details as returned by the Gitea API. This typically includes fields such as repository ID, name, description, owner info, visibility status, creation date, and other metadata related to the repository.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The node uses the Gitea REST API v1 endpoint /api/v1/repos/{owner}/{repo} to fetch repository data.

Troubleshooting

  • Common issues:

    • Incorrect owner or repository name will result in a "Not Found" error from the API.
    • Missing or invalid API authentication token will cause authorization errors.
    • Network connectivity problems to the Gitea server can lead to request timeouts or connection failures.
  • Error messages:

    • "404 Not Found": Verify that the owner and repo names are correct and that the repository exists.
    • "401 Unauthorized" or "403 Forbidden": Check that the API key credential is valid and has sufficient permissions.
    • "Network Error": Ensure the Gitea server URL is reachable from the n8n environment.

Links and References

Discussion