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