refactor(forge): add forge detection from git remote URL - #3192
Conversation
|
🤖 Finished Review · ✅ Success · Started 11:53 PM UTC · Completed 12:05 AM UTC |
PR Summary by QodoAdd forge detection from git remote URL (GitHub/GitLab)
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Site previewPreview: https://7eb932c3-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1.
|
Review✅ Approve — Clean, well-tested internal utility with comprehensive table-driven tests. All prior findings resolved or confirmed at low severity with proper documentation. Re-review deltaCode unchanged since prior review (
Dimensions reviewed
Previous runReview✅ Approve — Clean, well-tested internal utility with comprehensive table-driven tests covering HTTPS, SSH shorthand, Re-review deltaCode unchanged since prior review (
FindingsLow
Labels: PR adds Go code in Previous runReviewFindingsMedium
Low
Labels: PR adds Go code in internal/forge/ package Previous runReview✅ Approve — Clean, well-tested internal utility with comprehensive table-driven tests covering HTTPS, SSH shorthand, Re-review deltaCode unchanged since prior review (
FindingsLow
Labels: PR adds Go code in Previous run (2)ReviewFindingsMedium
Low
Labels: PR adds Go code in internal/forge/ package |
Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
6680d8c to
41b7b86
Compare
|
🤖 Finished Review · ✅ Success · Started 11:27 AM UTC · Completed 11:38 AM UTC |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 1:22 PM UTC · Completed 1:30 PM UTC |
Summary
DetectForge()function tointernal/forge/that determines forge platform from git remote URLs--forgeflag suggestion for unknown hostsPart of ADR 0067 Phase 0.
Related Issue
Part of GitLab forge support (ADR 0067)
Changes
internal/forge/detect.go: New file withDetectForge()andextractHost()internal/forge/detect_test.go: Comprehensive table-driven testsTesting
go test ./internal/forge/...passesgo vetcleanmake lintpasses🤖 Generated with Claude Code