Skip to content

Bug with --gh-host flag for enterprise servers that end in "...github.com" #2000

@danmurphy42

Description

@danmurphy42

if strings.HasSuffix(u.Hostname(), "github.com") {
return newDotcomHost()
}

It's possible for a Github Enterprise server to end in github.com, i.e. mycompanygithub.com, so any requests will still forward to api.github.com even if that's not the right hostname.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions