feat(git): Git-Backend über HTTPS + PAT (ADR 0003, FLW-86) (#19)
CI / App (npm ci + Build, ESLint, Stylelint, Jest) (push) Successful in 3m25s
CI / Storage (mongo) (push) Successful in 1m24s
CI / Storage (postgres) (push) Successful in 1m13s
Image / Image bauen und pushen (push) Successful in 1m3s

Repositories gitConnections/brewGitLinks (Mongo/PG), Krypto, SSRF-Policy mit net.BlockList, git-Client ohne Arbeitskopie, Sync/Konflikte, /api/git/*, Client (Verbindungen, Git-Status, Konfliktdialog), Autosave 60 s für Git-Brews (F6), Tests und Doku.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Dev (Paperclip) <dev-bot@noreply.git.morlana.online>
This commit was merged in pull request #19.
This commit is contained in:
dev-bot BotandClaude Sonnet 5.5 authored and Gitea committed 2026-11-25 21:16:42 +00:00
1 parent 06b7ad2c77
commit 448c67912f
44 files changed
+3081 -14

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// Einhängepunkte für homebrew.api.js (ADR 0003 §5). Ohne konfigurierten Service (Git-Backend aus, Unit-Specs)
// sind alle Hooks wirkungslos, damit die Upstream-Datei nur zwei Zeilen braucht.
let service;
export const configureGitHooks = (svc)=>{ service = svc; };
// → null: Antwort wurde bereits gesendet (Fehler, z. B. Konflikt G01); sonst Kontext (ggf. leer)
export const beforeBrewSave = async (args)=>service ? service.beforeBrewSave(args) : {};
// `saved` ist das Ergebnis des DB-Saves (falsy bei Fehler). Gibt den Brew-Mutex in jedem Fall frei.
export const afterBrewSave = async (ctx, saved)=>{ if(service) await service.afterBrewSave(ctx, saved); };
export default { configureGitHooks, beforeBrewSave, afterBrewSave };