Feature request: Mirror only the Latest n release assets + per repo setting #131

Closed
opened 2026-10-05 01:43:32 +02:00 by adam · 1 comment
Owner

I like to mirror release assets for some repositories. It would be nice if we had the ability to mirror release assets of only some repositories and not all of them. It should be manageable per repo what gets mirrored, not only globally.

Also, since many repos have accumulated hundreds of releases with hundreds of gigabytes of release assets that are many many years old, it doesn't make sense to mirror all of the old release assets in a home environment. It would be nice to be able to mirror only the latest n amount of release assets. If a repo has 100 releases, I'd like to mirror all releases and tags but only the release assets of the latest 5 releases for example. Something like this would be the ideal for me.

Appreciate your work!

I like to mirror release assets for some repositories. It would be nice if we had the ability to mirror release assets of only some repositories and not all of them. It should be manageable per repo what gets mirrored, not only globally. Also, since many repos have accumulated hundreds of releases with hundreds of gigabytes of release assets that are many many years old, it doesn't make sense to mirror all of the old release assets in a home environment. It would be nice to be able to mirror only the latest n amount of release assets. If a repo has 100 releases, I'd like to mirror all releases and tags but only the release assets of the latest 5 releases for example. Something like this would be the ideal for me. Appreciate your work! <!-- github-sync-id:4581201046 -->
adam closed this issue 2026-10-05 01:43:32 +02:00
Author
Owner

@Scaling6857 Not supported yet. Right now release mirroring is a single global toggle and assets always come along with it. The two things you're after are a "latest N releases get assets" limit and per-repo control. The global limit is the easier piece and a sensible first step; the per-repo override is more work. One heads-up: the existing releaseLimit setting won't get you there, since it actually deletes older releases from Gitea rather than just skipping their assets. I've put this on the backlog.

@Scaling6857 Not supported yet. Right now release mirroring is a single global toggle and assets always come along with it. The two things you're after are a "latest N releases get assets" limit and per-repo control. The global limit is the easier piece and a sensible first step; the per-repo override is more work. One heads-up: the existing `releaseLimit` setting won't get you there, since it actually deletes older releases from Gitea rather than just skipping their assets. I've put this on the backlog. <!-- github-comment-id:4700711703 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#131