From 17112452b805fceb961edefaf53e8bad53ea5ad5 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 25 Aug 2026 22:48:35 +0200 Subject: [PATCH] Proposal file select lists the whole questions tree Co-Authored-By: Claude Fable 5 --- questions/develop/proposal.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/questions/develop/proposal.yaml b/questions/develop/proposal.yaml index 24b0836..2913ad0 100644 --- a/questions/develop/proposal.yaml +++ b/questions/develop/proposal.yaml @@ -63,9 +63,12 @@ alternatives: public: true source: kind: url - url: https://project.uhhm.no/api/v1/repos/uhhm/questions/contents/questions?ref=main + # The whole tree, not one directory: since the tree became + # the router, pages live in subdirectories too. + url: https://project.uhhm.no/api/v1/repos/uhhm/questions/git/trees/main?recursive=true jq: > - .[] | select(.type == "file") | {path: .path, name: .name} + .tree[] | select(.type == "blob" and (.path | startswith("questions/")) and (.path | endswith(".yaml"))) + | {path: .path, name: .path} - name: new_path label: Or a new file's path placeholder: questions/example.yaml