Files
questions/questions/develop-proposal.yaml
T
Bendik Aagaard LynghaugandClaude Sonnet 5 1a88212bd9
Lint and reload / lint (push) Successful in 2s
Lint and reload / reload (push) Successful in 0s
Propose-a-change: pick the file from the repo itself
target_path becomes a select whose options are the live listing of
questions/ from Gitea's contents API (the engine's existing
select-from-resource mechanism - no code change), with a free path
field kept for proposals that create a new file. No more hand-typed,
typo-able paths for existing pages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 07:14:56 +02:00

60 lines
2.1 KiB
YAML

id: /develop-proposal
route: ^/develop-proposal
name: Propose a change
description: >
This site is built on the same question architecture you're using
right now — and changes to it are proposed through it. Describe what
should change and why; an owner reviews every proposal, and approved
ones become real commits.
alternatives:
- name: The change you propose
description: >
The proposed content replaces (or creates) one content file —
a page under questions/, or aggregates.yaml — verbatim, so it
has to be complete, valid YAML for that file, not a diff.
Nothing outside those files is in scope.
action: /proposed
consequence: [Propose it]
record_as: development_proposals
encouragements:
- Every proposal gets read by a person before anything moves.
features:
- name: Sign it
description: >
A proposal is a stance — it carries a name, and an address
if you want the outcome to reach you.
requirements:
- name: submitted_by
label: Name (or what to call you)
- name: email
label: Email
type: email
optional: true
- name: The change
description: >
Pick the page you're changing — or name a new file's path if
the proposal creates one.
requirements:
- name: target_path
label: The file to change
type: select
optional: true
id_field: path
resource:
public: true
source:
kind: url
url: https://project.uhhm.no/api/v1/repos/uhhm/questions/contents/questions?ref=main
jq: >
.[] | select(.type == "file") | {path: .path, name: .name}
- name: new_path
label: Or a new file's path
placeholder: questions/example.yaml
optional: true
- name: rationale
label: The rationale
type: textarea
- name: proposed_yaml
label: Proposed file content (complete YAML)
type: textarea