Extract credential-stripping into a tested helper
main·
Commit

Pull the parse-and-rebuild logic out of reportRepoEnabled into a pure cleanRemoteURLForReport helper and cover it with a table-driven test: embedded https tokens and user:password, query params, scp-style ssh users are all stripped, the .git suffix is normalized, and unparseable single-segment paths error. Guards assert no known secret survives in the cleaned URL.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 5046baaca8a6
Checkpoints
Checkpoint 1