[PR #119] [MERGED] Fix/duplicate repos issue 115 #137

Closed
opened 2026-02-27 15:55:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/119
Author: @arunavo4
Created: 10/22/2025
Status: Merged
Merged: 10/22/2025
Merged by: @arunavo4

Base: mainHead: fix/duplicate-repos-issue-115


📝 Commits (2)

  • 7fee2ad lib: harden mirror idempotency
  • b5323ff chore: remove duplicate fix summary

📊 Changes

1 file changed (+188 additions, -19 deletions)

View changed files

📝 src/lib/gitea.ts (+188 -19)

📄 Description

  • Remove the timestamp fallback in generateUniqueRepoName, forcing manual conflict resolution instead of endlessly creating unique names.
  • Add isRepoCurrentlyMirroring checks plus mirrored-location updates so concurrent mirror attempts bail out early in both user and org paths.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/119 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 10/22/2025 **Status:** ✅ Merged **Merged:** 10/22/2025 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `fix/duplicate-repos-issue-115` --- ### 📝 Commits (2) - [`7fee2ad`](https://github.com/RayLabsHQ/gitea-mirror/commit/7fee2adb5145b024ee51ca73e5d5ef6cca701c1d) lib: harden mirror idempotency - [`b5323ff`](https://github.com/RayLabsHQ/gitea-mirror/commit/b5323ff8b4d9eab0acbc55a2d8900c4532ad4e88) chore: remove duplicate fix summary ### 📊 Changes **1 file changed** (+188 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/gitea.ts` (+188 -19) </details> ### 📄 Description - Remove the timestamp fallback in generateUniqueRepoName, forcing manual conflict resolution instead of endlessly creating unique names. - Add isRepoCurrentlyMirroring checks plus mirrored-location updates so concurrent mirror attempts bail out early in both user and org paths. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:55:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#137
No description provided.