Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API, specifically to accept a repository transfer. When a repository is transferred from one owner to another in Gitea, the new owner must accept the transfer to complete it. This node automates that acceptance process.

Common scenarios include:

  • Automating repository management workflows where repositories are programmatically transferred between users or organizations.
  • Integrating repository transfer acceptance into CI/CD pipelines or administrative scripts.
  • Managing multiple repositories and owners efficiently without manual intervention.

Example: Automatically accept a repository transfer when notified by a webhook or as part of a larger automation flow managing repository ownership changes.

Properties

Name Meaning
Owner The username or organization name of the current owner of the repository being transferred. This identifies who currently owns the repo before transfer acceptance.
Repo The name of the repository that is being transferred and for which the transfer acceptance is requested.

Output

The node outputs JSON data representing the response from the Gitea API after accepting the repository transfer. This typically includes details about the repository such as its name, owner, and status confirming the transfer acceptance.

No binary data output is involved.

Dependencies

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

Troubleshooting

  • Authentication errors: Ensure the API token or key has sufficient permissions to accept repository transfers.
  • Repository not found: Verify that the "Owner" and "Repo" properties are correctly set and that the repository exists and is pending transfer.
  • Permission denied: The authenticated user must have rights to accept the transfer; check user roles and permissions on the Gitea server.
  • API connectivity issues: Confirm the Gitea server URL is correct and reachable from the n8n environment.

Links and References

Discussion