diff --git a/bootstrap.sh b/bootstrap.sh index 08149ed..2a5bdfc 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -35,6 +35,15 @@ echo "✓ Hooks ausführbar" echo "" echo "=== Voraussetzungen prüfen ===" +# --- gh (GitHub CLI, wird auch für Gitea-PRs genutzt) --- +if command -v gh &>/dev/null; then + echo "✓ gh $(gh --version | head -1)" +else + echo " gh fehlt – installiere via apt..." + sudo apt-get install -y gh + echo "✓ gh installiert" +fi + # --- jq --- if command -v jq &>/dev/null; then echo "✓ jq $(jq --version)" diff --git a/dotfiles/CLAUDE.md b/dotfiles/CLAUDE.md index 08d02cd..9b1da29 100644 --- a/dotfiles/CLAUDE.md +++ b/dotfiles/CLAUDE.md @@ -39,6 +39,14 @@ PRs muessen jedes Akzeptanzkriterium einzeln als Checkbox auflisten und bestaeti Niemals direkt auf `main` committen. Alle Aenderungen ueber Feature-Branches und PRs. +## Fehlende Tools + +Wenn ein benötigtes CLI-Tool fehlt: **nicht** mit Workarounds (curl, rohe API-Calls) umgehen. Stattdessen: + +1. User informieren welches Tool fehlt und den Installations-Befehl nennen +2. User führt den Befehl in einer separaten Konsole aus (sudo funktioniert dort) +3. Tool danach in `bootstrap.sh` aufnehmen, damit es auf allen Maschinen automatisch installiert wird + ## Gitea-Integration Instanz: `https://gitea.troeger-net.org`. Bot-User `claude-code`, Token: `GITEA_TOKEN=$(secret-tool lookup user claude-code token gitea)`. Bot hat nur Collaborator-Rechte.