Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider GHE endpoint for Pages deployment
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This could be problematic. The default endpoint for github.com is
https://api.github.com/
while for enterprise instance it'shttps://<your-github>/api/v3
/gh_url
would always be set in previous code. If user decides to push to github.com, it would construct theapi_endpoint
tohttps://github.com/api/v3
instead ofhttps://api.github.com/