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