mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-08 05:18:55 -05:00
[PR #249] [MERGED] fix: use recorded mirrored location for mirror-sync target #365
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/249
Author: @arunavo4
Created: 3/25/2026
Status: ✅ Merged
Merged: 3/27/2026
Merged by: @arunavo4
Base:
main← Head:codex/fix-issue-248-mirror-sync-target📝 Commits (1)
2da0277fix sync target resolution for mirrored repos📊 Changes
4 files changed (+176 additions, -27 deletions)
View changed files
📝
src/lib/gitea-enhanced.test.ts(+57 -0)📝
src/lib/gitea-enhanced.ts(+118 -24)📝
src/pages/activity.astro(+0 -1)📝
src/pages/index.astro(+1 -2)📄 Description
Summary
mirroredLocationbefore falling back to owner resolution from current configmirroredLocation) to use the resolved sync targetJob ... has no log datawarnings from page renderingWhy
Some users hit
HTTP 405: Method Not Allowedduring sync even though mirroring previously worked. This happened when sync used a newly computed owner path that no longer matched where the mirror actually exists in Gitea.Testing
bun test src/lib/gitea-enhanced.test.tsbun test src/lib/mirror-sync-errors.test.tsbun run buildCloses #248
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.