From 04496b9890c718a9d1578ac7c76c9632ffd60fad Mon Sep 17 00:00:00 2001 From: Fabien POLLY Date: Sat, 24 Jan 2026 17:38:51 +0100 Subject: [PATCH] feat: Changed GitHub API endpoint from fetching recursive git tree structure to retrieving commit history for a specific path. --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 78a54f3..69dc873 100644 --- a/index.html +++ b/index.html @@ -1466,7 +1466,8 @@ if (!branch) continue; debugLog(`[Bjorn] 🌐 Fetching structure from GitHub API: ${STATE.repo}/${branch}`); try { - const res = await fetch(`https://api.github.com/repos/${STATE.repo}/git/trees/${branch}?recursive=1`); + + const res = await fetch(`https://api.github.com/repos/${STATE.repo}/commits?path=${path}&sha=${STATE.branch}&page=1&per_page=1`); if (!res.ok) { debugLog(`[Bjorn] ⚠️ Branch "${branch}" failed (${res.status})`); continue;