Skip to content

Remove “Adopt Repository” from Gitea UI and Backend, Implement Equivalent in tea CLI #35244

@lunny

Description

@lunny

Feature Description

We propose removing the “Adopt Repository” feature from the Gitea web UI and backend, while introducing a similar capability in the tea command-line tool.

Rationale

  • The feature is rarely used via the web UI and adds unnecessary complexity to the Gitea core codebase.
  • Moving this functionality to the tea CLI keeps the Gitea UI simpler and more user-friendly, while still providing advanced users with the same capability.
  • This change aligns with the goal of keeping the web interface focused on common workflows and moving niche or administrative actions to CLI tooling.

Proposed Changes:

Gitea Backend/UI

  • Remove all backend logic, API endpoints to adopting repositories.
  • Remove the corresponding UI components.
  • Update documentation and translations accordingly.

tea CLI

  • Add a new command (e.g., tea repo adopt) to provide equivalent repository adoption functionality.
  • Support the same validation and permission checks as the original feature.
  • Ensure proper error handling and user feedback in CLI output.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions