GsActions / commit-message-checker

GitHub Action that checks commit messages of pushes and pull request against a regex pattern
MIT License
99 stars 56 forks source link

[BUGFIX] Fix wrong URL resolution at octokit/grapql queries in Github Enterprise #54

Closed veysiertekin closed 2 years ago

veysiertekin commented 2 years ago

Octokit/grapql queries points to wrong Github Urls. When I look into details, I have seen that it is using https://api.github.com by default. Made a small change that if there is a Github API URL definition it will use it.

This GITHUB_API_URL comes with Github's own implementation, does not require a manual defined environment variable by the user.

Note: tried latest version of Octokit, it still has the same problem.

gilbertsoft commented 2 years ago

Thanks for the fix!