Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API to retrieve information about a specific push mirror of a repository, identified by the remote name. It is useful when you want to programmatically access details about repository mirrors configured for pushing code to remote locations.

A practical example would be automating repository management workflows where you need to verify or audit push mirror configurations for repositories owned by a particular user or organization.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository from which to get the push mirror information.
Name The remote name of the push mirror whose details you want to retrieve.

Output

The node outputs JSON data representing the details of the specified push mirror. This typically includes configuration and status information about the mirror as returned by the Gitea API. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential to authenticate with a Gitea instance.
  • The node expects the base URL of the Gitea server to be provided in the credentials.
  • Uses the Gitea REST API v1 endpoints under /api/v1.

Troubleshooting

  • Common issues:

    • Incorrect or missing API credentials will cause authentication failures.
    • Providing an invalid owner, repo, or remote name will result in errors or empty responses.
    • Network connectivity issues to the Gitea server can cause request timeouts or failures.
  • Error messages:

    • Authentication errors usually indicate invalid or missing API tokens.
    • "Not Found" errors suggest the specified repository or push mirror does not exist.
    • To resolve, verify credentials, confirm repository and mirror names, and ensure network access to the Gitea server.

Links and References

Discussion