mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-07-04 00:41:44 +02:00
a18f262ca7
The "Auto-mirror new starred repositories" checkbox in the GitHub settings was a filter layered on top of scheduleConfig.autoMirror, which itself is only settable via the AUTO_MIRROR_REPOS env var (no UI). So users who checked the box saw their starred repos auto-imported but never mirrored. Treat autoMirror and autoMirrorStarred as independent triggers in the scheduler: autoMirror covers owned (and self-starred) repos, autoMirrorStarred covers repos starred from other owners. Either flag on its own is enough to enter the auto-mirror phase, and the filter scopes the work accordingly. Also normalize the owner comparison to lowercase since GitHub usernames are case-insensitive — previously a self-starred repo whose stored owner casing differed from the configured owner would be misclassified as a third-party star. Behavior change worth flagging in release notes: anyone who currently has the starred checkbox on (broken state) will start getting starred repos mirrored on upgrade. AUTO_MIRROR_REPOS=true users see no change.