mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-22 07:31:36 -05:00
[PR #208] [MERGED] feat: selective starred repo mirroring with autoMirrorStarred toggle #343
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/208
Author: @arunavo4
Created: 3/3/2026
Status: ✅ Merged
Merged: 3/4/2026
Merged by: @arunavo4
Base:
main← Head:fix/starred-repo-handling📝 Commits (3)
72f5506feat: add autoMirrorStarred toggle for selective starred repo mirroring (#205)4873206fix: log activity when repos are auto-imported during scheduled sync7471906ci: set 10-minute timeout on all CI jobs📊 Changes
16 files changed (+152 additions, -13 deletions)
View changed files
📝
.github/workflows/astro-build-test.yml(+1 -0)📝
.github/workflows/docker-build.yml(+1 -0)📝
.github/workflows/e2e-tests.yml(+1 -1)📝
.github/workflows/helm-test.yml(+2 -0)📝
.github/workflows/nix-build.yml(+1 -0)📝
docs/ENVIRONMENT_VARIABLES.md(+1 -0)📝
src/components/config/ConfigTabs.tsx(+1 -0)📝
src/components/config/GitHubMirrorSettings.tsx(+25 -0)📝
src/components/repositories/Repository.tsx(+10 -8)📝
src/hooks/useConfigStatus.ts(+12 -0)📝
src/lib/db/schema.ts(+1 -0)📝
src/lib/env-config-loader.ts(+3 -0)📝
src/lib/repository-cleanup-service.ts(+7 -0)📝
src/lib/scheduler-service.ts(+83 -4)📝
src/lib/utils/config-mapper.ts(+2 -0)📝
src/types/config.ts(+1 -0)📄 Description
Summary
Closes #205. Adds
autoMirrorStarredconfig toggle (default:false) so users can import starred repos for browsing without auto-mirroring everything.githubConfig.autoMirrorStarredcontrols whether starred repos are included in scheduler auto-mirror, first-boot mirror, and "Mirror All" — manual per-repo mirroring always worksincludeStarredis disabled (prevents data loss)performInitialAutoStart()now gates mirroring behindautoMirrorconfig (previously mirrored all imported repos unconditionally)pending-approvalstatus for force-push blocked reposAUTO_MIRROR_STARRED=trueto enable via environmentTest plan
bun run buildpassesbun testpasses (161 pass, 0 fail)autoMirrorStarred: false— starred repos import but scheduler/Mirror All skip them; individual mirror worksautoMirrorStarred: true— everything mirrors automatically as beforeincludeStarredwith already-mirrored starred repos — cleanup does NOT orphan themautoMirror: false— no repos get auto-mirrored🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.