From beea0b9b4a37933861e640f3fee1651adfaa3a2b Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Tue, 1 Dec 2026 23:13:12 +0100 Subject: [PATCH] Add issue form and pull request template Make the issue body the specification and give every PR a fixed shape. Co-Authored-By: Claude Opus 5.5 --- .gitea/ISSUE_TEMPLATE/config.yaml | 1 + .gitea/ISSUE_TEMPLATE/task.yaml | 61 +++++++++++++++++++++++++++++++ .gitea/PULL_REQUEST_TEMPLATE.md | 13 +++++++ 3 files changed, 75 insertions(+) create mode 100644 .gitea/ISSUE_TEMPLATE/config.yaml create mode 100644 .gitea/ISSUE_TEMPLATE/task.yaml create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.md diff --git a/.gitea/ISSUE_TEMPLATE/config.yaml b/.gitea/ISSUE_TEMPLATE/config.yaml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.gitea/ISSUE_TEMPLATE/task.yaml b/.gitea/ISSUE_TEMPLATE/task.yaml new file mode 100644 index 0000000..23af980 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/task.yaml @@ -0,0 +1,61 @@ +name: Aufgabe +about: Arbeitspaket mit Ziel, Akzeptanz und Prüfbefehl; der Body ist die Spezifikation. +title: "" +labels: ["status/draft"] +body: + - type: markdown + attributes: + value: | + Budget: etwa 300 Wörter. Mehr als fünf Akzeptanzkriterien heißt: das Issue teilen. + Was nach dem Merge gelten soll, gehört in Tests und ADRs, nicht ins Issue. + Die Reihenfolge steht in den Gitea-Abhängigkeiten, nicht im Text. Milestone setzen. + - type: textarea + id: goal + attributes: + label: Ziel + description: Was soll danach möglich sein? Ein bis drei Sätze. + placeholder: Der Dienst liest eine Seite aus dem Dateisystem und gibt sie als Domänentyp zurück. + validations: + required: true + - type: textarea + id: context + attributes: + label: Kontext + description: Betroffene Dateien, Verweise auf ADRs und andere Issues. + placeholder: | + - src/chemenu/ports/ + - docs/decisions/0001-repository-setup.md + - torben/chemenu#249 § Backend, Sicherheit, Clients + validations: + required: true + - type: textarea + id: acceptance + attributes: + label: Akzeptanz + description: | + Drei bis fünf Kriterien nach EARS. Normalfall: "Wenn …, dann …". Mindestens ein + unerwünschter Fall: "Falls …, dann …". Mindestens eine Zeile "… bleibt unverändert". + placeholder: | + 1. Wenn eine vorhandene Seite angefragt wird, dann liefert der Port ihren Inhalt. + 2. Wenn die Seite Links enthält, dann sind sie im Ergebnis aufgelöst. + 3. Falls die Seite fehlt, dann wird ein PageNotFoundError ausgelöst. + 4. Das Verhalten der übrigen Ports bleibt unverändert. + validations: + required: true + - type: textarea + id: out_of_scope + attributes: + label: Nicht im Umfang + description: Was bewusst nicht zu diesem Issue gehört. + placeholder: Schreibzugriff, Caching. + validations: + required: false + - type: textarea + id: verify + attributes: + label: Prüfen + description: Genau ein Befehl, der zeigt, dass das Issue erfüllt ist. + placeholder: uv run pytest tests/ports/test_pages.py + render: shell + validations: + required: true diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..808bbcc --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,13 @@ +Closes # + +## Zusammenfassung + + + +## Prüfnachweis + + + +## Evals + +