feat: support .mokogitea, .profile, and .github as org/user profile repo names #657
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes #651
.profileto.mokogitea(with-privatevariant).mokogitea>.profile>.github(tries each in order)FindOwnerProfileReadmeandOrgWikiRepoExistsuse the same fallback logic.profileor.githubrepos continue to work — no migration neededChanges
routers/web/shared/user/header.go— updated constants, added fallback map, modified lookup functionsmodels/repo/repo_test.go— added.mokogiteaand.githubas valid repo namesTest plan
.mokogitearepo shows profile README.profilerepo still shows profile README (fallback).githubrepo still shows profile README (fallback).mokogiteatakes priority when both.mokogiteaand.githubexist.mokogitea-private,.profile-private,.github-private