Decompose git_gate.py (699 LOC) #303
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From quality-eval (medium priority).
bot_bottle/git_gate.pymixes three responsibilities: gitconfig/known-hosts rendering, the gitea deploy-key lifecycle (_provision_dynamic_key/revoke_git_gate_provisioned_keys), and theGitGatedaemon control surface.Task: Split into focused modules, re-exporting from
git_gateso existingfrom bot_bottle.git_gate import …callers are unchanged (same pattern as #291's egress_dlp_config split). Pure refactor.No PRD required (refactor).