GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add support for locally hosted GHES instances to reduce rate limiting by C1ARKGABLE · Pull Request #720 · actions/setup-python Conversation
|
|
Guidance + suggestions are welcome! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@e-korolevskii @dmitry-shibanov This also affects a GHE instance I use. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| exports.findAllVersions = findAllVersions; | ||
| function getManifestFromRepo(owner, repo, auth, branch = 'master') { | ||
| function getManifestFromRepo(owner, repo, auth, branch = 'master', serverUrl = 'https://api.github.com') { |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
getManifestFromRepo() is a function from a library imported at the top of src/install-python.ts. The code here in dist/* is generated from that library at compile time, so your changes will be overwritten.
For reference, here is the source of the library function. If you truly intend to reuse the library function you'll first need to merge a PR changing its signature here.
In order for this PR to work you need to limit your changes to the src/*.ts files.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const MANIFEST_REPO_BRANCH = 'main'; | ||
| export const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; | ||
| const API_URL = core.getInput('github_api_url'); | ||
| const GITHUB_API_URL = API_URL ? 'https://api.github.com' : API_URL; |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
truthy and falsey expressions are backwards here, should be API_URL ? API_URL : ...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good catch
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The unit tests caught this! ;)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const API_URL = core.getInput('github_api_url'); | ||
| const GITHUB_API_URL = API_URL ? 'https://api.github.com' : API_URL; | ||
| const RAW_URL = core.getInput('github_raw_url'); | ||
| const GITHUB_RAW_URL = RAW_URL ? 'https://raw.githubusercontent.com' : RAW_URL; |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
truthy and falsey expressions are backwards here, should be RAW_URL ? RAW_URL : ...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Without any changes to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Converted to a draft until I can work on this further |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@C1ARKGABLE, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello @C1ARKGABLE 👋, As we didn't hear back on whether there's a remaining gap this PR would still cover, and given that the underlying problem is now resolved on main, we're going to close this PR. Thanks again for your contribution! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.