From 390b61595898abd87f30a04edacb5fbf10f8b5e5 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 11 Aug 2026 15:05:51 +0200 Subject: [PATCH] feat(apply): route Code RED applications to applications-red --- pages/api/github.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pages/api/github.ts b/pages/api/github.ts index 481124b16..0a2224e2b 100644 --- a/pages/api/github.ts +++ b/pages/api/github.ts @@ -148,21 +148,19 @@ ${contactFooter}` issueLabels.push('common-grant-app') } - // Repo set according to "main focus" + // Repo set according to "main focus" (RED uses its own priority repo) let appRepo = GH_APP_REPO - if (mainFocus === 'nostr') { + if (req.body.RED) { + appRepo = `${GH_APP_REPO}-red` + } else if (mainFocus === 'nostr') { appRepo = `${GH_APP_REPO}-nostr` - } - if (mainFocus === 'layer1') { + } else if (mainFocus === 'layer1') { appRepo = `${GH_APP_REPO}-layer1` - } - if (mainFocus === 'layer2') { + } else if (mainFocus === 'layer2') { appRepo = `${GH_APP_REPO}-layer2` - } - if (mainFocus === 'core') { + } else if (mainFocus === 'core') { appRepo = `${GH_APP_REPO}-core` - } - if (mainFocus === 'ecash') { + } else if (mainFocus === 'ecash') { appRepo = `${GH_APP_REPO}-ecash` }