Fix: Starred Repos Organization Bug | Organization Repos Routing

This commit is contained in:
Arunavo Ray
2025-07-21 10:39:48 +05:30
parent 6ea5e9efb0
commit 0244133e7b
5 changed files with 14 additions and 12 deletions

View File

@@ -143,7 +143,7 @@ export const POST: APIRoute = async ({ request }) => {
// For single-org and starred repos strategies, or when mirroring to an org,
// always use the org mirroring function to ensure proper organization handling
const mirrorStrategy = config.giteaConfig?.mirrorStrategy ||
const mirrorStrategy = config.githubConfig?.mirrorStrategy ||
(config.githubConfig?.preserveOrgStructure ? "preserve" : "flat-user");
const shouldUseOrgMirror =