diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 24ff222..a1a5fd2 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -106,7 +106,7 @@ A task is only done when ALL of the following are true: - [ ] `history/summary/PROJECT_CONTEXT.md` aktualisiert - [ ] Commit message follows Conventional Commits - [ ] No dead code, no TODOs left behind (or tracked as issues) -- [ ] pre-commit Quality Gate bestanden (oder Bypass bewusst begründet) +- [ ] pre-commit Quality Gate bestanden ## Testing Strategy diff --git a/docs/ADMIN.md b/docs/ADMIN.md index 8449d31..ba9a2d7 100644 --- a/docs/ADMIN.md +++ b/docs/ADMIN.md @@ -73,11 +73,6 @@ cp ~/.git-templates/hooks/pre-commit /path/to/repo/.git/hooks/pre-commit chmod +x /path/to/repo/.git/hooks/pre-commit ``` -**Hook deaktivieren (pro Commit):** -```bash -git commit --no-verify -m "..." -``` - **Hook dauerhaft deaktivieren (pro Repo):** ```bash chmod -x .git/hooks/pre-commit @@ -127,5 +122,5 @@ fish_add_path ~/.local/bin |---|---|---| | `copilot-bootstrap.sh: command not found` | `~/.local/bin` nicht im PATH | Siehe "PATH" oben | | `git init` ruft Bootstrap nicht auf | Git-Alias nicht gesetzt | `deploy.sh` erneut ausführen | -| Hook schlägt fehl obwohl alles ok | Falsch-positiver Match | `git commit --no-verify` | +| Hook schlägt fehl obwohl alles ok | Falsch-positiver Match | `.copilot-no-tests` oder `.copilot-no-docs` anlegen; oder Hook-Script prüfen | | Hook nicht aktiv nach `git clone` | Hooks werden bei `clone` nicht kopiert | `copilot-bootstrap.sh` im geklonten Repo ausführen | diff --git a/docs/MAINTAINER.md b/docs/MAINTAINER.md index db82c69..dc26567 100644 --- a/docs/MAINTAINER.md +++ b/docs/MAINTAINER.md @@ -121,4 +121,4 @@ Dateien unter `git-templates/` bearbeiten → `deploy.sh` ausführen → neue Re | 3 Zielgruppen-Docs (USER/ADMIN/MAINTAINER) | Klare Trennung: Nutzer ≠ Ops ≠ Dev; jede Gruppe findet ihren Kontext direkt | | `data/` gitignored, Ordner-Struktur tracked | Persistente Daten gehören nie ins Git; Struktur als Konvention dokumentiert | | `history/prompts/` committed | Vollständige Agent-History bleibt im Repo erhalten; ermöglicht lückenlose Nachvollziehbarkeit | -| pre-commit Hook als Quality Gate | Automatisches Netz verhindert dass Tests/Doku vergessen werden; `--no-verify` bleibt als bewusstes Escape-Valve | +| pre-commit Hook als Quality Gate | Automatisches Netz verhindert dass Tests/Doku vergessen werden; Opt-outs via `.copilot-no-tests` / `.copilot-no-docs` für Repos ohne Framework | diff --git a/docs/USER.md b/docs/USER.md index 7b5aaed..9103dbf 100644 --- a/docs/USER.md +++ b/docs/USER.md @@ -119,7 +119,7 @@ Das deploy-Skript wurde noch nicht auf diesem System ausgeführt. Schritt 1+2 wi Der Hook hat Tests oder Dokumentation vermisst. Optionen: - Tests schreiben: Copilot Chat → `/write-tests` - Dokumentation aktualisieren: `docs/USER.md`, `docs/ADMIN.md` oder `docs/MAINTAINER.md` -- Bewusst überspringen: `git commit --no-verify` (bitte sparsam verwenden) +- Tests/Docs opt-out: `.copilot-no-tests` oder `.copilot-no-docs` im Repo-Root anlegen **Ich will die Templates aktualisieren** Im `rd13_copilot_setup`-Repo die Dateien in `git-templates/` ändern, committen, dann `deploy.sh` erneut ausführen. diff --git a/git-templates/.github/copilot-instructions.md b/git-templates/.github/copilot-instructions.md index 24ff222..a1a5fd2 100644 --- a/git-templates/.github/copilot-instructions.md +++ b/git-templates/.github/copilot-instructions.md @@ -106,7 +106,7 @@ A task is only done when ALL of the following are true: - [ ] `history/summary/PROJECT_CONTEXT.md` aktualisiert - [ ] Commit message follows Conventional Commits - [ ] No dead code, no TODOs left behind (or tracked as issues) -- [ ] pre-commit Quality Gate bestanden (oder Bypass bewusst begründet) +- [ ] pre-commit Quality Gate bestanden ## Testing Strategy diff --git a/git-templates/hooks/pre-commit b/git-templates/hooks/pre-commit index 44df831..a881ece 100755 --- a/git-templates/hooks/pre-commit +++ b/git-templates/hooks/pre-commit @@ -32,7 +32,7 @@ TESTS_CHANGED=$(printf '%s\n' "$STAGED" \ if [ -z "$TESTS_CHANGED" ] && [ ! -f ".copilot-no-tests" ]; then echo "" - echo "✗ AGENT QUALITY GATE [1/3]: Keine Test-Dateien geändert" + echo "✗ AGENT QUALITY GATE [1/4]: Keine Test-Dateien geändert" echo " Code-Änderungen ohne Test-Updates:" printf '%s\n' "$CODE_CHANGED" | sed 's/^/ /' echo "" @@ -52,7 +52,7 @@ if [ -d "docs" ] && [ ! -f ".copilot-no-docs" ]; then if [ -z "$DOCS_CHANGED" ]; then echo "" - echo "✗ AGENT QUALITY GATE [2/3]: Keine Dokumentation aktualisiert" + echo "✗ AGENT QUALITY GATE [2/4]: Keine Dokumentation aktualisiert" echo " Bei Code-Änderungen muss mindestens eine dieser Dateien angepasst werden:" echo " docs/USER.md – Nutzer-Dokumentation" echo " docs/ADMIN.md – Administrator-Dokumentation" diff --git a/history/prompts/2026-06-02_copilot-update-auto-deploy_session.md b/history/prompts/2026-06-02_copilot-update-auto-deploy_session.md index 110c42f..579f908 100644 --- a/history/prompts/2026-06-02_copilot-update-auto-deploy_session.md +++ b/history/prompts/2026-06-02_copilot-update-auto-deploy_session.md @@ -205,3 +205,37 @@ fix: --no-verify komplett entfernt aus pre-commit + .copilot-no-tests --- *Git-Block automatisch generiert durch post-commit hook.* + +--- + +## Git Commit + +| Feld | Wert | +|---|---| +| Datum | 2026-06-02 11:13:34 | +| Branch | `master` | +| Commit | `fb1a01ba78da267bebbf6d52f98304b64f58b156` | +| Autor | Conrad Schulz | + +### Commit Message + +``` +fix: review-findings behoben (7 Punkte) +``` + +### Geänderte Dateien + +| Status | Datei | +|---|---| +| A | .copilot-no-docs | +| M | .github/copilot-instructions.md | +| M | git-templates/.github/copilot-instructions.md | +| M | git-templates/hooks/pre-commit | +| M | history/prompts/2026-06-02_copilot-update-auto-deploy_session.md | +| D | history/prompts/2026-06-02_master_55fee83.md | +| M | history/summary/PROJECT_CONTEXT.md | +| M | prompts/history.prompt.md | +| M | scripts/copilot-bootstrap.sh | + +--- +*Git-Block automatisch generiert durch post-commit hook.* diff --git a/history/summary/PROJECT_CONTEXT.md b/history/summary/PROJECT_CONTEXT.md index 1ab6844..9c1d32c 100644 --- a/history/summary/PROJECT_CONTEXT.md +++ b/history/summary/PROJECT_CONTEXT.md @@ -8,7 +8,7 @@ ## Aktueller Projektstatus -**Letzte Aktualisierung:** 2026-06-02 – Review-Findings behoben (7 Punkte) +**Letzte Aktualisierung:** 2026-06-02 – Konsistenzprüfung: alle --no-verify Referenzen entfernt **Phase:** Produktion / stabil – wird bei Bedarf erweitert --- @@ -29,6 +29,7 @@ Quality Gate aus. | Datum | Aufgabe | Ergebnis | Entscheidungen | |---|---|---|---| +| 2026-06-02 | Konsistenzprüfung: alle --no-verify Referenzen entfernt | `docs/USER.md`, `docs/ADMIN.md`, `docs/MAINTAINER.md`, beide `copilot-instructions.md`, `pre-commit` Check-Nummerierung `[1/3]→[1/4]` | Opt-outs (.copilot-no-tests/.copilot-no-docs) als Ersatz für --no-verify in Doku | | 2026-06-02 | Review-Findings behoben (7 Punkte) | `git-templates/hooks/pre-commit`, `.copilot-no-docs`, beide `copilot-instructions.md`, `prompts/history.prompt.md`, `scripts/copilot-bootstrap.sh` | `.copilot-no-docs` Opt-out analog zu `.copilot-no-tests`; history.prompt.md Append-Verhalten korrekt dokumentiert | | 2026-06-02 | copilot-update.sh + git alias + post-merge Hook | `scripts/copilot-update.sh`, `scripts/copilot-update.fish`, `git-templates/hooks/post-merge` | SSH+HTTP-Fallback; opt-in Update-Hook; copilot-instructions.md nur bei TODO überschreiben | | 2026-05-31 | Bug fix: mkdir -p .git/hooks + eigenes Repo bootstrapped | `e1f912f` | – |