feat: support .mokogitea, .profile, and .github as org/user profile repo names #657

Merged
jmiller merged 7 commits from dev into main 2026-06-20 18:06:09 +00:00
Owner

Summary

Closes #651

  • Primary profile repo name changed from .profile to .mokogitea (with -private variant)
  • Fallback chain: .mokogitea > .profile > .github (tries each in order)
  • Both FindOwnerProfileReadme and OrgWikiRepoExists use the same fallback logic
  • Existing .profile or .github repos continue to work — no migration needed

Changes

  • routers/web/shared/user/header.go — updated constants, added fallback map, modified lookup functions
  • models/repo/repo_test.go — added .mokogitea and .github as valid repo names

Test plan

  • Org with .mokogitea repo shows profile README
  • Org with only .profile repo still shows profile README (fallback)
  • Org with only .github repo still shows profile README (fallback)
  • .mokogitea takes priority when both .mokogitea and .github exist
  • Private profile works with .mokogitea-private, .profile-private, .github-private
  • Org wiki lookup follows same fallback chain
## Summary Closes #651 - Primary profile repo name changed from `.profile` to `.mokogitea` (with `-private` variant) - Fallback chain: `.mokogitea` > `.profile` > `.github` (tries each in order) - Both `FindOwnerProfileReadme` and `OrgWikiRepoExists` use the same fallback logic - Existing `.profile` or `.github` repos continue to work — no migration needed ## Changes - `routers/web/shared/user/header.go` — updated constants, added fallback map, modified lookup functions - `models/repo/repo_test.go` — added `.mokogitea` and `.github` as valid repo names ## Test plan - [ ] Org with `.mokogitea` repo shows profile README - [ ] Org with only `.profile` repo still shows profile README (fallback) - [ ] Org with only `.github` repo still shows profile README (fallback) - [ ] `.mokogitea` takes priority when both `.mokogitea` and `.github` exist - [ ] Private profile works with `.mokogitea-private`, `.profile-private`, `.github-private` - [ ] Org wiki lookup follows same fallback chain
jmiller added 3 commits 2026-06-20 17:57:05 +00:00
feat: support .mokogitea, .profile, and .github as org/user profile repo names (#651)
Universal: Auto Version Bump / Version Bump (push) Successful in 7s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 2m35s
65fdbdafd3
Primary profile repo name is now .mokogitea with fallback chain:
.mokogitea > .profile > .github (and their -private variants).

Co-Authored-By: Claude <noreply@anthropic.com>
jmiller added 1 commit 2026-06-20 18:00:38 +00:00
fix: stale error message, add fallback to wiki commit lookup
Generic: Project CI / Tests (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Universal: Auto Version Bump / Version Bump (push) Successful in 6s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 2m17s
Branch Policy Check / Verify merge target (pull_request) Successful in 1s
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 11s
Generic: Repo Health / Access control (pull_request) Successful in 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Project CI / Lint & Validate (pull_request) Successful in 45s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 50s
PR RC Release / Build RC Release (pull_request) Failing after 51s
b98c46e17c
- Fix log message in FindOwnerProfileReadme (was "GetRepositoryByName", now "GetDoerRepoPermission")
- Add profile repo fallback to findOrgWikiCommit in wiki.go
- Extract ProfileRepoFallbacks helper for reuse across packages

Co-Authored-By: Claude <noreply@anthropic.com>
jmiller added 1 commit 2026-06-20 18:01:27 +00:00
jmiller added 2 commits 2026-06-20 18:05:46 +00:00
# Conflicts:
#	.mokogitea/manifest.xml
#	.mokogitea/workflows/issue-branch.yml
Merge branch 'dev' of https://git.mokoconsulting.tech/MokoConsulting/MokoGitea-Fork into dev
Generic: Project CI / Tests (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Universal: Auto Version Bump / Version Bump (push) Successful in 8s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 1m54s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 1m39s
Branch Policy Check / Verify merge target (pull_request) Successful in 3s
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Generic: Repo Health / Access control (pull_request) Successful in 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Failing after 9s
Generic: Project CI / Lint & Validate (pull_request) Successful in 39s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 2m1s
PR RC Release / Build RC Release (pull_request) Failing after 1m59s
4277b32867
# Conflicts:
#	.mokogitea/manifest.xml
#	.mokogitea/workflows/issue-branch.yml
jmiller merged commit b77bfe47ef into main 2026-06-20 18:06:09 +00:00
Sign in to join this conversation.