tasks.py: skip empty repos when updating hound

This commit is contained in:
zowoq 2023-03-17 11:33:19 +10:00
parent 66475fc83c
commit 59aa029934

View file

@ -114,7 +114,6 @@ def update_hound_repos(c):
"nix-community/nixpkgs",
"nix-community/nsncd",
"nix-community/rkwifibt",
"NixOS/nixops-dashboard", # empty repo causes an error
]
resp = {}
@ -141,6 +140,7 @@ def update_hound_repos(c):
"url": repo["clone_url"],
}
for repo in repos
if repo["size"] != 0 # skip empty repos
if repo["full_name"] not in disallowed_repos
if repo["archived"] is False
}