feat(auth login): auto-detect GitLab URLs from git remotes
Description
- feat(auth login): auto-detect GitLab URLs from git remotes
This change automatically detects GitLab instance URLs from git remotes
when running glab auth login
in interactive mode. When detected,
hostnames are presented as selectable options with smart prioritization,
saving users from manually typing or copy-pasting instance URLs.
Closes #8010
Related Issues
Resolves #[issue_number]
How has this been tested?
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap