From 5c5bb76c4529f726d7bc0d4f5aa02d617264bf48 Mon Sep 17 00:00:00 2001 From: Damian Date: Tue, 24 Dec 2024 10:18:20 -0300 Subject: [PATCH] Set github attribute to curated extensions --- packages/nextjs/pages/extensions.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nextjs/pages/extensions.tsx b/packages/nextjs/pages/extensions.tsx index 383520a..e8f4e90 100644 --- a/packages/nextjs/pages/extensions.tsx +++ b/packages/nextjs/pages/extensions.tsx @@ -135,6 +135,10 @@ export const getStaticProps: GetStaticProps = async () => { if (!ext.name) { ext.name = ext.branch; } + ext.github = ext.repository; + if (ext.branch) { + ext.github += `/tree/${ext.branch}`; + } return ext; });