Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API, specifically providing an operation to adopt a repository as an administrator. The "Admin Adopt Repository" operation allows an admin user to take ownership of a repository by specifying its current owner and repository name. This is useful in scenarios where repositories need to be transferred or managed centrally by administrators, such as consolidating orphaned repositories or managing organizational resources.

Practical example: An organization admin wants to adopt a repository originally owned by a user who left the organization, so they use this node to assume control over that repository for maintenance or archival purposes.

Properties

Name Meaning
Owner The username or identifier of the current owner of the repository to be adopted.
Repo The name of the repository to be adopted.

Output

The node outputs JSON data representing the result of the adopt repository operation. This typically includes details about the repository after adoption, such as updated ownership information and repository metadata returned from the Gitea API.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API being accessible and the authenticated user having administrative privileges to perform repository adoption.

Troubleshooting

  • Common issues:

    • Insufficient permissions: The authenticated user must have admin rights; otherwise, the adoption will fail.
    • Incorrect owner or repo names: Typos or non-existent repositories will cause errors.
    • Network or authentication failures: Ensure the API URL and credentials are correct.
  • Error messages:

    • Authorization errors indicating lack of permission can be resolved by verifying admin access.
    • Not found errors suggest checking the owner and repo names.
    • Connection errors require validating network access and API endpoint correctness.

Links and References

Discussion