mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-11-16 14:45:02 -06:00
[GH-ISSUE #361] Allow per-repository configuration for LFS migration and issue synchronization in mirror settings #7396
Reference in New Issue
Block a user
Originally created by @MMMMMoris on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/361
Originally assigned to: @arunavo4 on GitHub.
First of all
Thank you for all your work! They are wonderful. 🚀
Secondly
Allow per-repository configuration for LFS migration and issue synchronization in mirror settings
I would like to request a more flexible configuration model for repository mirroring.
Currently, the mirror configuration appears to apply the same settings to all repositories, including options such as:
This becomes problematic when mirroring a large number of repositories because different repositories often have very different requirements.
For example, some repositories such as browser-use consistently fail to mirror when "Migrate LFS files" is enabled. The migration reaches the LFS synchronization stage and fails, which causes the entire mirror operation to fail.
Always migrating...

Migrating manually in gitea without LFS configured is successful as followed.
In this situation, there is no way to say:
Because the LFS option is configured globally for the mirror task, repositories that cannot be migrated with LFS enabled will repeatedly fail.
There are also other practical cases:
Proposed improvement
I suggest allowing the mirror configuration to be overridden per repository.
For example, the global mirror configuration could define defaults:
And each repository could override these options individually:
Alternatively, the UI could provide these options when adding or editing an individual repository:
The global mirror configuration could still remain as the default, while allowing individual repositories to override it.
Why this would be useful
A single global configuration is difficult to use when mirroring repositories with significantly different characteristics.
More importantly, a single repository that cannot be migrated with LFS enabled can currently prevent that repository from being mirrored successfully at all.
Per-repository settings would allow users to choose the appropriate level of synchronization for each repository instead of having to choose between:
The same applies to issues and release assets. Different repositories have different priorities and storage requirements.
I believe making the mirror options configurable per repository would make the mirroring system considerably more flexible and practical for large-scale GitHub/Gitea mirroring.
Feature request: Please consider adding per-repository overrides for LFS migration, issue synchronization, and ideally other resource types such as releases/assets as well.
@MMMMMoris commented on GitHub (Aug 19, 2026):
Not just LFS migration and issue synchronization, any other configurations can be included while preparing to migrate should be able to be customized.
@arunavo4 commented on GitHub (Aug 19, 2026):
Yeah, you've read this right.
We pass
lfs: truestraight through to Gitea's/repos/migrate, so the LFS pull happens inside Gitea's migration, not in our code. When it fails, Gitea throws out the whole migration and there's nothing left on our side to salvage. That's why it worked when you did it by hand with LFS off.So we can't just catch it and carry on. Turning LFS off per repo is the only real fix here. Agreed it should be there.
Same story for the rest of your list. Issues, PRs, releases and wiki are all global right now. Repos already have a per-repo destination override, so there's a pattern to copy for this.
Couple of things before I start:
Do you want this at the org level too, so it goes global -> org -> repo? Orgs already have their own destination override, so it's cheap to add now and annoying to bolt on later. If you're mirroring a lot of repos, "everything under this org skips LFS" probably beats ticking boxes one at a time.
And which of these do you actually need? I'm planning LFS, issues, PRs, releases and wiki. If there's something else you'd want to set per repo, mention it now and I'll fold it in.
@arunavo4 commented on GitHub (Aug 20, 2026):
@MMMMMoris Please test out the new version and let me know
@MMMMMoris commented on GitHub (Aug 20, 2026):
Great! I'll be testing it later.👍
@MMMMMoris commented on GitHub (Aug 20, 2026):
It works! Marvelous! Keep testing...
@MMMMMoris commented on GitHub (Aug 20, 2026):
Seems like sync configurations are missing under mobile mode.
@arunavo4 commented on GitHub (Aug 21, 2026):
@MMMMMoris Fixed in v3.27.1. The mobile cards had no menu at all, the options were only wired into the desktop table. Each card now has the same three dot menu:
The Organizations page had the same gap in reverse, the desktop menu was missing the entry while mobile had it. Both are in v3.27.1, image is on ghcr now. Thanks for catching it so quickly.