You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .github property of the Toolkit class instances lets me interact with GitHub cloud but it does not allow me to interact with a GitHub Enterprise Server. This causes issues when attempting to use this package in a GitHub action running from GitHub Enterprise
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Without passing a 'baseUrl' property into the constructor of Octokit, it will default to using GitHub Cloud's API endpoint, rather than the API endpoint on the GitHub Enterprise Server.
Allow an additional parameter to be passed into the ToolKit constructor that might allow me to pass in the correct API endpoint URL or detect the URL from the environment variables GitHub Enterprise provides:
process.env.GITHUB_API_URL == 'https://{hostname of GitHub Enterprise Server}/api/v3'
Describe alternatives you've considered
I have not found a work around. I replaced the .github property with my own correctly configured OctoKit class instance
The text was updated successfully, but these errors were encountered:
The
.github
property of the Toolkit class instances lets me interact with GitHub cloud but it does not allow me to interact with a GitHub Enterprise Server. This causes issues when attempting to use this package in a GitHub action running from GitHub EnterpriseA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Without passing a 'baseUrl' property into the constructor of Octokit, it will default to using GitHub Cloud's API endpoint, rather than the API endpoint on the GitHub Enterprise Server.
The baseUrl parameter should be added here:
actions-toolkit/src/index.ts
Line 142 in c6c7208
Describe the solution you'd like
Allow an additional parameter to be passed into the ToolKit constructor that might allow me to pass in the correct API endpoint URL or detect the URL from the environment variables GitHub Enterprise provides:
Describe alternatives you've considered
I have not found a work around. I replaced the
.github
property with my own correctly configured OctoKit class instanceThe text was updated successfully, but these errors were encountered: