mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-21 07:01:20 -05:00
[PR #233] [MERGED] fix: use external URL for Gitea repo links #1852
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?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/233
Author: @arunavo4
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @arunavo4
Base:
main← Head:codex/fix-issue-232-external-url-links📝 Commits (1)
c89ec93fix repo links to use external gitea url📊 Changes
5 files changed (+79 additions, -32 deletions)
View changed files
📝
src/components/dashboard/RepositoryList.tsx(+2 -11)📝
src/components/organizations/OrganizationsList.tsx(+2 -11)📝
src/components/repositories/RepositoryTable.tsx(+2 -10)➕
src/lib/gitea-url.test.ts(+45 -0)➕
src/lib/gitea-url.ts(+28 -0)📄 Description
Summary
giteaConfig.externalUrlwhen configuredRationale
When
GITEA_URLpoints to an internal service (for examplehttp://gitea:3000) andGITEA_EXTERNAL_URLis configured, repo links should point to the external/public URL. This patch aligns repository links with existing organization-link behavior and prevents regressions.Testing
bun test src/lib/gitea-url.test.tsCloses #232
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.