frontend
backend
database
auth
Allow transferring project ownership to another workspace
- Move projects between workspaces from Project Settings — You can now move a project to another workspace you belong to (your personal workspace or an organization). Repositories and changelog history remain with the project; the target workspace will become the new owner.
API
- Added a new POST /api/projects/[slug]/transfer endpoint to change a project's owner to another user or organization, with request validation using a Zod schema.backend
- Added server-side checks to ensure the requester is authorized, the target organization exists, and the user is a member of the target organization before allowing a transfer.auth
Improvements
- Updated the Project Settings page to list transfer targets (your personal workspace and organizations you belong to).frontend
- Updated ProjectSettingsForm with a transfer UI, confirmation dialog, and client-side flow that calls the transfer API and switches active workspace after a successful move.frontend
Database
- Added a transferOwnership method to the projects repository to update owner_type and owner_id in the database.database
- Added tests for transferOwnership to verify owner_type and owner_id are updated correctly.database