Decompose git_gate.py (699 LOC) #303

Closed
opened 2026-06-26 20:30:55 -04:00 by didericis-claude · 0 comments
Collaborator

From quality-eval (medium priority).

bot_bottle/git_gate.py mixes three responsibilities: gitconfig/known-hosts rendering, the gitea deploy-key lifecycle (_provision_dynamic_key / revoke_git_gate_provisioned_keys), and the GitGate daemon control surface.

Task: Split into focused modules, re-exporting from git_gate so existing from bot_bottle.git_gate import … callers are unchanged (same pattern as #291's egress_dlp_config split). Pure refactor.

No PRD required (refactor).

From quality-eval (medium priority). `bot_bottle/git_gate.py` mixes three responsibilities: gitconfig/known-hosts rendering, the gitea deploy-key lifecycle (`_provision_dynamic_key` / `revoke_git_gate_provisioned_keys`), and the `GitGate` daemon control surface. **Task:** Split into focused modules, re-exporting from `git_gate` so existing `from bot_bottle.git_gate import …` callers are unchanged (same pattern as #291's egress_dlp_config split). Pure refactor. No PRD required (refactor).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#303