mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	add admin op: delete missing repos
This commit is contained in:
		| @@ -116,6 +116,7 @@ type AdminOperation int | ||||
| const ( | ||||
| 	CLEAN_INACTIVATE_USER AdminOperation = iota + 1 | ||||
| 	CLEAN_REPO_ARCHIVES | ||||
| 	CLEAN_MISSING_REPOS | ||||
| 	GIT_GC_REPOS | ||||
| 	SYNC_SSH_AUTHORIZED_KEY | ||||
| 	SYNC_REPOSITORY_UPDATE_HOOK | ||||
| @@ -139,6 +140,9 @@ func Dashboard(ctx *middleware.Context) { | ||||
| 		case CLEAN_REPO_ARCHIVES: | ||||
| 			success = ctx.Tr("admin.dashboard.delete_repo_archives_success") | ||||
| 			err = models.DeleteRepositoryArchives() | ||||
| 		case CLEAN_MISSING_REPOS: | ||||
| 			success = ctx.Tr("admin.dashboard.delete_missing_repos_success") | ||||
| 			err = models.DeleteMissingRepositories() | ||||
| 		case GIT_GC_REPOS: | ||||
| 			success = ctx.Tr("admin.dashboard.git_gc_repos_success") | ||||
| 			err = models.GitGcRepos() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user