Skip to content

[Refactor] Isolate source-control provider cleanup - #1126

Draft
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/source-control-cleanup-2okv59l2t3xdy
Draft

[Refactor] Isolate source-control provider cleanup#1126
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/source-control-cleanup-2okv59l2t3xdy

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

Created by Roomote. Follow up by mentioning @roomote-roomote or in the web UI.

What changed

Extracted source-control provider removal into an exhaustive typed registry and a dedicated cleanup boundary. The registry now owns provider-specific webhook removal, OAuth and cache cleanup, legacy environment-variable aliases, GitHub disconnection, and Azure DevOps account unlinking, while the command module only performs authorization and delegates the lifecycle.

Added focused coverage for legacy alias detection and combined webhook/OAuth warning aggregation alongside the existing provider matrix, runtime-only no-op, Azure DevOps unlinking, and fatal transaction behavior.

Why this change was made

Provider removal had become a large provider-specific branch in the central source-control command module. Isolating destructive lifecycle behavior reduces branch drift and gives future providers one typed integration point for cleanup responsibilities.

Impact

There is no intended user-facing behavior change. Provider configuration removal retains its existing warning and failure semantics while becoming easier to extend and review safely.

@roomote-community

roomote-community Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed 0d82eab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant