Fix for GHES when authorized through GitHub App with GITHUB_URL instead of GITHUB_ENTERPRISE_URL (#2464)
Ref #2457
This commit is contained in:
parent
942f773fef
commit
aa50b62c01
|
|
@ -84,6 +84,8 @@ func (c *Config) NewClient() (*Client, error) {
|
|||
return nil, fmt.Errorf("enterprise url incorrect: %v", err)
|
||||
}
|
||||
tr.BaseURL = githubAPIURL
|
||||
} else if c.URL != "" && tr.BaseURL != c.URL {
|
||||
tr.BaseURL = c.URL
|
||||
}
|
||||
transport = tr
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue