Proposal file select lists the whole questions tree
Lint and reload / reload (push) Successful in 0s
Lint and reload / lint (push) Skipped
Lint and reload / reload (push) Successful in 0s
Lint and reload / lint (push) Skipped
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
17341c170e
commit
17112452b8
@@ -63,9 +63,12 @@ alternatives:
|
|||||||
public: true
|
public: true
|
||||||
source:
|
source:
|
||||||
kind: url
|
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: >
|
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
|
- name: new_path
|
||||||
label: Or a new file's path
|
label: Or a new file's path
|
||||||
placeholder: questions/example.yaml
|
placeholder: questions/example.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user