Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub API for downloads #18

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Use GitHub API for downloads #18

merged 2 commits into from
Jun 7, 2024

Conversation

will-v-pi
Copy link
Collaborator

Change the download mechanism for GitHub releases to use the GitHub API for downloads if a PAT is given. This will make it possible for the extension to download from private repositories, if users wish to test private forks of the tools/SDK/etc.

Not using this by default for non-authenticated GitHub requests (ie if no PAT is given), to avoid impacting the rate limit with an additional request for each download.

@will-v-pi will-v-pi marked this pull request as ready for review June 3, 2024 09:25
Refactor common code, and add downloading using GitHub API if a GitHub PAT is given

Signed-off-by: William Vinnicombe <william.vinnicombe@raspberrypi.com>
@will-v-pi will-v-pi force-pushed the github-api-downloads branch from bc819d1 to f944b93 Compare June 3, 2024 09:29
@will-v-pi will-v-pi merged commit 1dea76e into main Jun 7, 2024
1 check passed
@will-v-pi will-v-pi deleted the github-api-downloads branch September 9, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant