jomarko commented on code in PR #2126:
URL:
https://github.com/apache/incubator-kie-tools/pull/2126#discussion_r1463160747
##########
packages/chrome-extension/src/app/components/common/GitHubContext.tsx:
##########
@@ -70,10 +84,10 @@ export const GitHubContextProvider: React.FC<{}> = (props)
=> {
useEffect(() => {
if (token) {
- octokitInstance = new Octokit({ auth: token });
+ octokitInstance = new Octokit({ auth: token, baseUrl:
getGitHubApiBaseUrl(window.location.origin) });
console.debug("Token found");
} else {
- octokitInstance = new Octokit();
+ octokitInstance = new Octokit({ baseUrl:
getGitHubApiBaseUrl(window.location.origin) });
Review Comment:
from now on, we must to setup the `Octokit` library to use proper url, by
default it uses `https://api.github.com`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]