diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..cb74867 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,58 @@ +# Contributing to Hermes Rocket.Chat Plugin + +## Commit-Message-Convention + +Alle Commits folgen dem Conventional-Commits-Format mit einem +**Production-Impact-Footer**. + +### Format + +``` +(): + + + +Production-Impact: +``` + +### Types + +- `feat`: Neue Funktionalität +- `fix`: Bugfix +- `docs`: Dokumentation +- `refactor`: Code-Umbau ohne Funktionsänderung +- `test`: Tests +- `chore`: Build/Tooling + +### Scopes + +- `adapter`: Gateway-Adapter (REST, DDP, WebSocket) +- `presence`: PresenceEngine, PulseController, DetectionTimer +- `archivar`: Archivar-Logik (Routing, Room-Map, History) +- `gateway`: Gateway-Integration + +### Production-Impact-Footer + +Jeder Commit MUSS einen `Production-Impact`-Footer haben: + +| Level | Bedeutung | +|----------|-----------| +| `none` | Kein Einfluss auf Produktion (Doku, Tests, Chores) | +| `low` | Kosmetische Änderung, kein Verhaltenswechsel | +| `medium` | Verhaltensänderung mit geringem Risiko | +| `high` | Signifikante Verhaltensänderung (Circuit-Breaker, Rate-Limiting) | +| `critical` | Hotfix für Produktionsausfall | + +### Beispiele + +``` +feat(adapter): http_timeout als konfigurierbarer Parameter + +Production-Impact: none +``` + +``` +fix(P1): users.setStatus 429 Circuit-Breaker — verhindert Gateway-Hang + +Production-Impact: HIGH — verhindert Gateway-Hang durch 429-Endlosschleife +```