Skip to content

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

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 github.com/ghapi even if that's not the right hostname.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions