Closed rajbos closed 2 weeks ago
Hi, thank you for the pull request! What is the value of GITHUB_SERVER_URL
in that case? I'm thinking maybe it can be just implemented as:
hosts.add(new URL(process.env.GITHUB_SERVER_URL).hostname);
hosts.add(new URL(process.env.GITHUB_API_URL).hostname);
Imlemented in f62d32cd684392a758c627a58e0756b734bd54fd
Load the API_URL environment variable and use that instead of
api.github.com
. Since GHES will have its address ashttps://custom.domain.com/api/v3
, we only need to add the domain name itself.Closes #8