mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-22 23:51:42 -05:00
[GH-ISSUE #278] Automatically mirror new repositories #2253
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?
Originally created by @pschlo on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/278
Originally assigned to: @arunavo4 on GitHub.
It seems like after a new repository has been created on GitHub, it will be automatically imported to Gitea Mirror, but not automatically mirrored.
Does this always require manually clicking the "mirror" Button, or can new repositories be mirrored automatically?
@arunavo4 commented on GitHub (Apr 30, 2026):
Yes @pschlo currently needs manual. But I guess we can have it be automatically mirrored for people who want all of thier github to be mirrored and for people who want manual control there can be a checkbox or something they can uncheck.
@pschlo commented on GitHub (Apr 30, 2026):
Under "Configuration -> Connections -> GitHub Configuration -> Repository Selection" there is this option:
Does this already do such automatic mirroring of newly starred repositories? Maybe this can be extended to also consider newly created own repositories.
However, the option currently does not seem to be working for me. A newly starred repository is auto-imported, but not mirrored, even though I have the option checked.
@arunavo4 commented on GitHub (May 4, 2026):
The starred half of this is fixed in v3.15.8 — the "Auto-mirror new starred repositories" checkbox now works on its own. After upgrading, new stars should mirror on the next scheduled sync.
Leaving this open for the second half: surfacing auto-mirror for owned repos in the UI (it currently only works via the
AUTO_MIRROR_REPOS=trueenv var).@arunavo4 commented on GitHub (May 4, 2026):
The owned-repo half is going up in #282 — adds a UI toggle for it under Configuration → Automation → Automatic Syncing so you no longer need to set
AUTO_MIRROR_REPOS=trueat container start.Verified in dev: toggle persists across reload.
@arunavo4 commented on GitHub (May 4, 2026):
The owned half is shipped in v3.15.9 — toggle is at Configuration → Automation → Automatic Syncing. With this and the v3.15.8 starred fix, both halves of the original ask are covered. Closing once you confirm it works on your end.