Org wiki tab: switch from standalone wiki repos to .profile wiki sidecars #594
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
The org wiki tab currently reads from standalone
wiki/wiki-privaterepos. These have been migrated into the.profileand.profile-privaterepo wikis (Gitea wiki sidecars). The code needs to read from the wiki.wiki.gitrepos instead.Changes
routers/web/shared/user/header.go: ConstantsRepoNameWikiPublic/RepoNameWikiPrivatechanged fromwiki/wiki-privateto.profile/.profile-private.OrgWikiRepoExistsnow checks the wiki sidecar viagitrepo.GetDefaultBranch.routers/web/org/wiki.go:findOrgWikiCommitnow opensWikiStorageRepo()(the.wiki.gitsidecar) instead of the main repo.templates/org/wiki/view.tmpl: Empty state text updated.templates/org/settings/options.tmpl: Settings labels updated.Context
Closed #593 — wiki content migrated to profile repo wikis. The standalone
wikiandwiki-privaterepos are now archived.