feat: pre-commit Check 6 – Session-Datei fuer heute erforderlich
- Blockiert Commit wenn keine history/prompts/HEUTE_*_session.md existiert - Zwingt Agenten /history auszufuehren vor dem Commit - Opt-out: .copilot-no-session fuer manuelle Commits ohne Chat-Kontext - .gitignore: *.bak ergaenzt (copilot-update.sh legt .bak bei copilot-instructions.md an)
This commit is contained in:
parent
8ec4038dc5
commit
6ab2614df5
3 changed files with 50 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ data/**/*
|
||||||
|
|
||||||
|
|
||||||
!data/.gitkeep
|
!data/.gitkeep
|
||||||
|
*.bak
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
# 3. Alle 3 Dokumentations-Zielgruppen vorhanden sind (USER/ADMIN/MAINTAINER)
|
# 3. Alle 3 Dokumentations-Zielgruppen vorhanden sind (USER/ADMIN/MAINTAINER)
|
||||||
# 4. history/summary/PROJECT_CONTEXT.md aktualisiert wurde
|
# 4. history/summary/PROJECT_CONTEXT.md aktualisiert wurde
|
||||||
# 5. docs/requirements/REQUIREMENTS.md keine unstaged Änderungen hat
|
# 5. docs/requirements/REQUIREMENTS.md keine unstaged Änderungen hat
|
||||||
|
# 6. Eine Session-Datei für heute existiert (history/prompts/HEUTE_*_session.md)
|
||||||
#
|
#
|
||||||
# Hooks laufen immer – kein --no-verify verwenden.
|
# Hooks laufen immer – kein --no-verify verwenden.
|
||||||
|
|
||||||
|
|
@ -118,11 +119,30 @@ if [ -f "docs/requirements/REQUIREMENTS.md" ] && [ ! -f ".copilot-no-requirement
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ── Check 6: Session-Datei für heute ──────────────────────────────────────────────────
|
||||||
|
# Prüft ob eine Agent-Session-Datei für heute existiert.
|
||||||
|
# Zwingt den Agenten /history auszuführen bevor er committet.
|
||||||
|
# Opt-out: Datei '.copilot-no-session' im Repo-Root für manuelle Commits ohne Chat-Kontext.
|
||||||
|
if [ -d "history/prompts" ] && [ ! -f ".copilot-no-session" ]; then
|
||||||
|
TODAY=$(date +%Y-%m-%d)
|
||||||
|
SESSION_FILE=$(ls "history/prompts/${TODAY}_"*"_session.md" 2>/dev/null | head -1)
|
||||||
|
if [ -z "$SESSION_FILE" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "✗ AGENT QUALITY GATE [6/6]: Keine Session-Datei für heute"
|
||||||
|
echo " Es existiert kein Agent-Log für heute (${TODAY}_*_session.md)."
|
||||||
|
echo ""
|
||||||
|
echo " → Copilot Chat: /history (Session loggen + Kontext aktualisieren)"
|
||||||
|
echo " → Manueller Commit ohne Chat? Datei '.copilot-no-session' anlegen:"
|
||||||
|
echo " touch .copilot-no-session && git add .copilot-no-session"
|
||||||
|
ERRORS=$((ERRORS + 1))
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# ── Ergebnis ──────────────────────────────────────────────────────────────────
|
# ── Ergebnis ──────────────────────────────────────────────────────────────────
|
||||||
if [ "$ERRORS" -gt 0 ]; then
|
if [ "$ERRORS" -gt 0 ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "══════════════════════════════════════════════════════════"
|
echo "══════════════════════════════════════════════════════════"
|
||||||
echo " $ERRORS von 5 Quality Gate(s) nicht bestanden."
|
echo " $ERRORS von 6 Quality Gate(s) nicht bestanden."
|
||||||
echo " Behebe die Probleme bevor du committst."
|
echo " Behebe die Probleme bevor du committst."
|
||||||
echo " ══════════════════════════════════════════════════════════"
|
echo " ══════════════════════════════════════════════════════════"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
|
|
@ -174,3 +174,31 @@ Erklärt: `/history` in VS Code Copilot Chat eintippen.
|
||||||
|
|
||||||
- [ ] `docs/requirements/REQUIREMENTS.md` für dieses Setup-Repo selbst anlegen (aktuell nur Template im git-templates)
|
- [ ] `docs/requirements/REQUIREMENTS.md` für dieses Setup-Repo selbst anlegen (aktuell nur Template im git-templates)
|
||||||
- [ ] `.github/copilot-instructions.md` TODO-Felder ausfüllen (Stack, Architecture, NFRs)
|
- [ ] `.github/copilot-instructions.md` TODO-Felder ausfüllen (Stack, Architecture, NFRs)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Git Commit
|
||||||
|
|
||||||
|
| Feld | Wert |
|
||||||
|
|---|---|
|
||||||
|
| Datum | 2026-06-02 17:58:25 |
|
||||||
|
| Branch | `master` |
|
||||||
|
| Commit | `8ec4038dc591821b3d821db2e67c0ae8fe925e28` |
|
||||||
|
| Autor | Conrad Schulz <conradschulz@me.com> |
|
||||||
|
|
||||||
|
### Commit Message
|
||||||
|
|
||||||
|
```
|
||||||
|
docs: session history 2026-06-02 review-fixes + requirements engineering
|
||||||
|
```
|
||||||
|
|
||||||
|
### Geänderte Dateien
|
||||||
|
|
||||||
|
| Status | Datei |
|
||||||
|
|---|---|
|
||||||
|
| M | history/prompts/2026-06-02_copilot-update-auto-deploy_session.md |
|
||||||
|
| A | history/prompts/2026-06-02_review-fixes-requirements-engineering_session.md |
|
||||||
|
| M | history/summary/PROJECT_CONTEXT.md |
|
||||||
|
|
||||||
|
---
|
||||||
|
*Git-Block automatisch generiert durch post-commit hook.*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue