-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Download file function for large files/private repos #1
Comments
@noamross Of course =) Feel free to PR away. I'll likely tweak the |
Great, I'll PR once I've gotten the vectorization TODOs finished. |
How do you feel about dependencies? I'd like to parse path input with either stringi or urltools, the combinations I need are something of a pain with the base regex tools. I got rid of the need for base64enc with a PR to gh to handle raw responses correctly. |
Dependency wise:
There is also a dependency in the script on |
Actually I don't need the purrr dependency, and it's not in the version I'll PR in. I'll be busy this weekend but start the PR before then. My aim with the regex is to allow user to drop in any link which may or may not have
and extract the user, repo, ref and path. The plan is to have a |
Where do I sign? 😃 Let's aim to include the code with all dependencies and I'll refactor it later if they become problematic / we aim to go lightweight. |
I recently wrote this function for downloading files from GH private repos. The GH API restricts downloads from the
/contents
endpoint to 1MB. One can get the file from the/blob
endpoint, but that first requires querying the/commit
endpoint to get the file SHA. The function wraps all this so you can just drop the URL of a file in a private repo and download the file using gh's auth infrastructure. Would you be interested in it as a PR? It needs a good home.https://gist.github.com/noamross/73944d85cad545ae89efaa4d90b049db
The text was updated successfully, but these errors were encountered: