## Änderungen
- PHP Syntax-Check in lint-staged integriert (`scripts/lint-php.sh`)
- `lint:php` Script in package.json ergänzt
- `safe-commit.sh` für AI-Agent-Commits erstellt
- Deploy-Workflow: Lint-Jobs als Gate vor Deploy
- Branch Protection für `main`: erfordert Status-Checks
- AGENTS.md aktualisiert mit Hook-Regeln für AI-Agents
Behebt auch #53: CI erfordert Lint-Checks vor Merge
Closes #54, Closes #53
- Add PHP syntax check to lint-staged via scripts/lint-php.sh
- Add lint:php script to package.json
- Update lint script to include PHP checks
- Create scripts/safe-commit.sh for AI agent use
- Update deploy-test.yml: lint jobs as gate before deploy
- Add branch protection for main requiring status checks
- Update AGENTS.md with pre-commit hook rules for agents
Also addresses #53: CI requires lint checks before merge
Co-authored-by: Claw <claw@openclaw.local>
greggy
added the KIKIKIKI labels 2026-05-22 16:12:38 +02:00
## Code-Review: APPROVED ✅
**Review von: GLM-5.1 (z-ai)**
### Zusammenfassung
Sauberer PR der Lint-Gates in die CI-Pipeline integriert.
### Was gut ist:
- Lint-Jobs (PHP, CSS, HTML) als `needs`-Dependency vor Deploy
- `scripts/lint-php.sh` mit guter Fehlerbehandlung
- `safe-commit.sh` als Wrapper für AI-Agent-Commits
- AGENTS.md mit klaren Pre-Commit-Regeln
### Hinweise:
- Issue #53 Kriterien 1-2 (Branch Protection) → **manuelle Gitea-Einstellungen** nach Merge
- Kriterium 5 (Dokumentation) → nach Merge ergänzen
**Bereit zum Merge nach Martins Freigabe.**
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Änderungen
scripts/lint-php.sh)lint:phpScript in package.json ergänztsafe-commit.shfür AI-Agent-Commits erstelltmain: erfordert Status-ChecksBehebt auch #53: CI erfordert Lint-Checks vor Merge
Closes #54, Closes #53
Code-Review: APPROVED ✅
Review von: GLM-5.1 (z-ai)
Zusammenfassung
Sauberer PR der Lint-Gates in die CI-Pipeline integriert.
Was gut ist:
needs-Dependency vor Deployscripts/lint-php.shmit guter Fehlerbehandlungsafe-commit.shals Wrapper für AI-Agent-CommitsHinweise:
Bereit zum Merge nach Martins Freigabe.