1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add a db consistency check to remove runners that do not belong to a repository (#30614)

Follow #30406
This commit is contained in:
Zettat123
2024-04-23 11:51:52 +08:00
committed by GitHub
parent e94864e86c
commit 30dd4beeee
2 changed files with 30 additions and 2 deletions

View File

@@ -152,6 +152,12 @@ func prepareDBConsistencyChecks() []consistencyCheck {
Fixer: actions_model.FixRunnersWithoutBelongingOwner,
FixedMessage: "Removed",
},
{
Name: "Action Runners without existing repository",
Counter: actions_model.CountRunnersWithoutBelongingRepo,
Fixer: actions_model.FixRunnersWithoutBelongingRepo,
FixedMessage: "Removed",
},
{
Name: "Topics with empty repository count",
Counter: repo_model.CountOrphanedTopics,