[PR #174] [MERGED] Allow starred repos to be mirrored preserving structure #164

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

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/174
Author: @tasarren
Created: 2/14/2026
Status: Merged
Merged: 2/24/2026
Merged by: @arunavo4

Base: mainHead: feat/starred-by-org


📝 Commits (4)

  • f4d391b Allow starred repos to be mirrored preserving structure
  • 0a3ad4e Fix retry mirror strategy fallback
  • 29051f3 Polish starred destination UI copy
  • 893fae2 Skip GHCR push for fork PRs

📊 Changes

20 files changed (+256 additions, -76 deletions)

View changed files

📝 .env.example (+2 -1)
📝 .github/workflows/README.md (+4 -2)
📝 .github/workflows/docker-build.yml (+4 -2)
📝 README.md (+1 -1)
📝 docs/ENVIRONMENT_VARIABLES.md (+1 -0)
📝 src/components/config/ConfigTabs.tsx (+1 -0)
📝 src/components/config/GiteaConfigForm.tsx (+7 -0)
📝 src/components/config/OrganizationConfiguration.tsx (+99 -35)
📝 src/components/config/OrganizationStrategy.tsx (+16 -7)
📝 src/components/repositories/InlineDestinationEditor.tsx (+12 -5)
📝 src/lib/db/schema.ts (+1 -0)
📝 src/lib/env-config-loader.ts (+3 -0)
📝 src/lib/gitea.test.ts (+52 -3)
📝 src/lib/gitea.ts (+20 -4)
📝 src/lib/starred-repos-handler.ts (+18 -5)
📝 src/lib/utils/config-defaults.ts (+1 -0)
📝 src/lib/utils/config-mapper.ts (+2 -0)
📝 src/pages/api/job/mirror-repo.ts (+5 -6)
📝 src/pages/api/job/retry-repo.ts (+4 -5)
📝 src/types/config.ts (+3 -0)

📄 Description

What it does
Allows the user to mirror starred repositories and keep the original structure 1:1

It is optional and defaults to the current main branch behaviour.

Motivation
What has been discussed here https://github.com/RayLabsHQ/gitea-mirror/issues/169

I'm using this right now, no problems so far.


🔄 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/174 **Author:** [@tasarren](https://github.com/tasarren) **Created:** 2/14/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `feat/starred-by-org` --- ### 📝 Commits (4) - [`f4d391b`](https://github.com/RayLabsHQ/gitea-mirror/commit/f4d391b240e9120df162f04f3c024bb39e9d47ee) Allow starred repos to be mirrored preserving structure - [`0a3ad4e`](https://github.com/RayLabsHQ/gitea-mirror/commit/0a3ad4e7f54ccb4f036ea37b9f857258925e2ced) Fix retry mirror strategy fallback - [`29051f3`](https://github.com/RayLabsHQ/gitea-mirror/commit/29051f350351b4420f68f2fd23531de6bab897da) Polish starred destination UI copy - [`893fae2`](https://github.com/RayLabsHQ/gitea-mirror/commit/893fae27d35d46dab178c74625fd2e4d1069fa3c) Skip GHCR push for fork PRs ### 📊 Changes **20 files changed** (+256 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+2 -1) 📝 `.github/workflows/README.md` (+4 -2) 📝 `.github/workflows/docker-build.yml` (+4 -2) 📝 `README.md` (+1 -1) 📝 `docs/ENVIRONMENT_VARIABLES.md` (+1 -0) 📝 `src/components/config/ConfigTabs.tsx` (+1 -0) 📝 `src/components/config/GiteaConfigForm.tsx` (+7 -0) 📝 `src/components/config/OrganizationConfiguration.tsx` (+99 -35) 📝 `src/components/config/OrganizationStrategy.tsx` (+16 -7) 📝 `src/components/repositories/InlineDestinationEditor.tsx` (+12 -5) 📝 `src/lib/db/schema.ts` (+1 -0) 📝 `src/lib/env-config-loader.ts` (+3 -0) 📝 `src/lib/gitea.test.ts` (+52 -3) 📝 `src/lib/gitea.ts` (+20 -4) 📝 `src/lib/starred-repos-handler.ts` (+18 -5) 📝 `src/lib/utils/config-defaults.ts` (+1 -0) 📝 `src/lib/utils/config-mapper.ts` (+2 -0) 📝 `src/pages/api/job/mirror-repo.ts` (+5 -6) 📝 `src/pages/api/job/retry-repo.ts` (+4 -5) 📝 `src/types/config.ts` (+3 -0) </details> ### 📄 Description **What it does** Allows the user to mirror starred repositories and keep the original structure 1:1 It is optional and defaults to the current main branch behaviour. **Motivation** What has been discussed here https://github.com/RayLabsHQ/gitea-mirror/issues/169 I'm using this right now, no problems so far. --- <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:23 +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#164
No description provided.