Skip to content

fix: host normalization#17

Open
OGKevin wants to merge 1 commit intodmmulroy:mainfrom
OGKevin:fix/host-normalization
Open

fix: host normalization#17
OGKevin wants to merge 1 commit intodmmulroy:mainfrom
OGKevin:fix/host-normalization

Conversation

@OGKevin
Copy link
Copy Markdown

@OGKevin OGKevin commented Feb 2, 2026

Extract protocol and path stripping logic into a
reusable normalize_host() function. This ensures
consistent host handling across platform detection, GitHub, and GitLab auth flows, enabling proper
support for enterprise instances with full URLs.

This is needed as tools like glab work with GITLAB_HOST set to https://gitlab.company.com.

  • Add normalize_host() function to types module
  • Update platform detection to normalize hosts
  • Update GitHub/GitLab services to normalize hosts
  • Add unit tests for normalization

Change-Id: f3759a0d5d8eed4308b5f1100b6adea7
Change-Id-Short: kwsuqpzmumrl

@OGKevin OGKevin force-pushed the fix/host-normalization branch from bac0bbc to 568b12a Compare February 2, 2026 13:55
Extract protocol and path stripping logic into a
reusable normalize_host() function. This ensures
consistent host handling across platform detection,
GitHub, and GitLab auth flows, enabling proper
support for enterprise instances with full URLs.

This is needed as tools like glab work with GITLAB_HOST set to
https://gitlab.company.com.

- Add normalize_host() function to types module
- Update platform detection to normalize hosts
- Update GitHub/GitLab services to normalize hosts
- Add unit tests for normalization

Change-Id: f3759a0d5d8eed4308b5f1100b6adea7
Change-Id-Short: kwsuqpzmumrl
@OGKevin OGKevin force-pushed the fix/host-normalization branch from 568b12a to e37b6c7 Compare February 4, 2026 08:20
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