mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Allow to sync tags from admin dashboard (#28045)
Inspired by #28043
This PR adds a option to the Admin Dashboard to sync all tags to the
database.

This commit is contained in:
parent
f3ba3e922d
commit
4567a3a1ad
7 changed files with 100 additions and 0 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/container"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
"code.gitea.io/gitea/modules/graceful"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/repository"
|
||||
"code.gitea.io/gitea/modules/storage"
|
||||
|
@ -370,3 +371,8 @@ func DeleteReleaseByID(ctx context.Context, repo *repo_model.Repository, rel *re
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Init start release service
|
||||
func Init() error {
|
||||
return initTagSyncQueue(graceful.GetManager().ShutdownContext())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue