summaryrefslogtreecommitdiff
path: root/cgithub/src/scraper.ts
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-03-14 00:35:48 -0400
committerJoe Mou <dev@mou.fo>2026-03-14 00:36:16 -0400
commit4662a229e06468a0805a18c6175bc0fd3a4ea985 (patch)
treed32f85f7f0baaa4a22713ca3ec7ff89da53fe73e /cgithub/src/scraper.ts
parent148272c64a97259ac874c4d8af1a93f197299012 (diff)
Fix tree overviewHtml: use tree.readme instead of overview.overviewFiles
Diffstat (limited to 'cgithub/src/scraper.ts')
-rw-r--r--cgithub/src/scraper.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgithub/src/scraper.ts b/cgithub/src/scraper.ts
index ac30259..cd743a0 100644
--- a/cgithub/src/scraper.ts
+++ b/cgithub/src/scraper.ts
@@ -101,6 +101,7 @@ interface CodeViewRepoRoute {
interface CodeViewTreeRoute {
tree: {
items: TreeItem[];
+ readme?: OverviewFile;
};
}
@@ -416,7 +417,9 @@ export async function getGitHubTree(
throw new Error("Could not find tree data in embedded JSON");
}
- return extractGitHub(payload, { items: treeRoute.tree.items });
+ const overviewHtml = extractOverviewHtml(treeRoute.tree.readme ? [treeRoute.tree.readme] : []);
+
+ return extractGitHub(payload, { items: treeRoute.tree.items, overviewHtml });
}
export async function getGitHubBlob(