mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-24 23:05:53 +03:00
[PR #174] [MERGED] Allow starred repos to be mirrored preserving structure #164
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/174
Author: @tasarren
Created: 2/14/2026
Status: ✅ Merged
Merged: 2/24/2026
Merged by: @arunavo4
Base:
main← Head:feat/starred-by-org📝 Commits (4)
f4d391bAllow starred repos to be mirrored preserving structure0a3ad4eFix retry mirror strategy fallback29051f3Polish starred destination UI copy893fae2Skip 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.