Org wiki tab: switch from standalone wiki repos to .profile wiki sidecars #594

Closed
opened 2026-06-09 19:59:25 +00:00 by jmiller · 0 comments
Owner

Summary

The org wiki tab currently reads from standalone wiki / wiki-private repos. These have been migrated into the .profile and .profile-private repo wikis (Gitea wiki sidecars). The code needs to read from the wiki .wiki.git repos instead.

Changes

  • routers/web/shared/user/header.go: Constants RepoNameWikiPublic / RepoNameWikiPrivate changed from wiki/wiki-private to .profile/.profile-private. OrgWikiRepoExists now checks the wiki sidecar via gitrepo.GetDefaultBranch.
  • routers/web/org/wiki.go: findOrgWikiCommit now opens WikiStorageRepo() (the .wiki.git sidecar) 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 wiki and wiki-private repos are now archived.

## Summary The org wiki tab currently reads from standalone `wiki` / `wiki-private` repos. These have been migrated into the `.profile` and `.profile-private` repo wikis (Gitea wiki sidecars). The code needs to read from the wiki `.wiki.git` repos instead. ## Changes - `routers/web/shared/user/header.go`: Constants `RepoNameWikiPublic` / `RepoNameWikiPrivate` changed from `wiki`/`wiki-private` to `.profile`/`.profile-private`. `OrgWikiRepoExists` now checks the wiki sidecar via `gitrepo.GetDefaultBranch`. - `routers/web/org/wiki.go`: `findOrgWikiCommit` now opens `WikiStorageRepo()` (the `.wiki.git` sidecar) 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 `wiki` and `wiki-private` repos are now archived.
Sign in to join this conversation.