1
0

Disable EGH check '[3] repositories without branches'
All checks were successful
Build Docker and Deploy / Build Docker (push) Successful in 16s
Build Docker and Deploy / Deploy to Server (push) Successful in 16s

This commit is contained in:
Mike Schwörer 2023-12-31 15:20:13 +01:00
parent a75e7b56eb
commit 1010d99fd2
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -596,14 +596,14 @@ WHERE md1.parent != '' AND check_hash IS NULL", []);
}
}
// ======== [3] repositories without branches ==========
{
$errors = $this->sql_query_assoc_prep("SELECT repositories.*, (SELECT COUNT(*) FROM branches WHERE repositories.id = branches.repo_id) AS branch_count FROM repositories WHERE branch_count = 0", []);
foreach ($errors as $e) {
$result []= "Found repository [".$e['id']."]'".$e['name']."' without any branches";
}
}
# // ======== [3] repositories without branches ==========
# {
# $errors = $this->sql_query_assoc_prep("SELECT repositories.*, (SELECT COUNT(*) FROM branches WHERE repositories.id = branches.repo_id) AS branch_count FROM repositories WHERE branch_count = 0", []);
#
# foreach ($errors as $e) {
# $result []= "Found repository [".$e['id']."]'".$e['name']."' without any branches";
# }
# }
// ======== [4] branches without commits ==========