-
Notifications
You must be signed in to change notification settings - Fork 17
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
Can't Load Gist #38
Comments
How about first trying out |
I think there are two main advantages to using Octokit like in Fiddle:
I think the rate-limiting is less of a concern when doing simple Git commands (as opposed to using the API), but I can find some examples on Google of folks getting rate-limited on I think removing the need for Git on the system is a strong reason to use Octokit, since it makes it easier to use |
Sounds good! I believe we can fetch GitHub gists without being authenticated (token) using Octokit but for better rate limits we might need a token in that case. |
It's generally a good idea to avoid providing access tokens as arguments, otherwise they stay exposed in command history, and any usage on for example CI jobs would show the token. For use with the CLI it would be better to use an environment variable, something like |
Yup, makes sense. Working on it 👍 |
GitHub switched the default branch for gists to
main
a while ago, butfiddle-core
's built in gist loading will try to check outmaster
.Simple solution would be to use
main
when cloning the gist, but old gists will still be usingmaster
. Most robust solution is probably to port the code in Fiddle'ssrc/renderer/remote-loader.ts
and use Octokit to grab the gist instead of just git.The text was updated successfully, but these errors were encountered: