Fixed Private Repo Issues

This commit is contained in:
Arunavo Ray
2025-07-17 23:46:01 +05:30
parent e6a31512ac
commit 251baeb1aa
4 changed files with 35 additions and 34 deletions

View File

@@ -52,13 +52,11 @@ export async function getGithubRepositories({
{ per_page: 100 }
);
const includePrivate = config.githubConfig?.privateRepositories ?? false;
const skipForks = config.githubConfig?.skipForks ?? false;
const filteredRepos = repos.filter((repo) => {
const isPrivateAllowed = includePrivate || !repo.private;
const isForkAllowed = !skipForks || !repo.fork;
return isPrivateAllowed && isForkAllowed;
return isForkAllowed;
});
return filteredRepos.map((repo) => ({