From 9b7162f2ca2bd10b3d9def2fe62469c84d48914f Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 23 Aug 2026 11:27:39 +0200 Subject: [PATCH] Showcase links prefer repo Website setting; fix star count field A private starred repo used to link visitors straight to a 404. The link now uses the repo's Website setting when set, falls back to the repo url only for public repos, and renders private repos without a website as unlinked cards. Also: Gitea serializes the star count as stars_count, not GitHub's stargazers_count - the stars chip had been silently null and dropped. Co-Authored-By: Claude Fable 5 --- questions/index.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/questions/index.yaml b/questions/index.yaml index 5d09337..c1e1a1b 100644 --- a/questions/index.yaml +++ b/questions/index.yaml @@ -23,9 +23,18 @@ alternatives: kind: gitea_starred username: bl public: true + # The link prefers the repo's Website setting so private + # repos can point at something the public can actually + # open; a private repo with no website gets no link at all + # (the card renders an unlinked heading) instead of a 404. + # Gitea calls the star count stars_count, not GitHub's + # stargazers_count. jq: > - .[] | {name: .name, description: .description, url: .html_url, - stars: .stargazers_count} + .[] | {name: .name, description: .description, + stars: .stars_count, + url: (if .website != null and .website != "" then .website + elif .private then null + else .html_url end)} - name: Your brief description: > A few lines are enough to begin a conversation — we need a