From 163471bc2f0f18e001bcef9db18900d70b4ef637 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 11 Apr 2026 17:35:02 +0200 Subject: [PATCH] skip some repos Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- scripts/fetch-repos.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/fetch-repos.ts b/scripts/fetch-repos.ts index cc6e55c..42850f4 100644 --- a/scripts/fetch-repos.ts +++ b/scripts/fetch-repos.ts @@ -29,6 +29,7 @@ const GITEA_BASE = "https://git.hadi.icu"; const GITEA_USER = "anotherhadi"; const GITHUB_USER = "anotherhadi"; const GITLAB_USER = "anotherhadi_mirror"; +const SKIP_REPOS = ["anotherhadi"]; async function checkMirrors(repoName: string): Promise { const mirrors: RepoMirrors = {}; @@ -56,8 +57,13 @@ export async function fetchGiteaRepos(): Promise { if (!res.ok) throw new Error(`Gitea API: ${res.status}`); const repos: GiteaRepo[] = await res.json(); + const filtered = repos - .filter((r) => !r.fork && !r.private) + .filter((r) => + !r.fork && + !r.private && + !SKIP_REPOS.includes(r.name) + ) .sort( (a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime()