-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support for private repos #27
Support for private repos #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to update the remote to use the current token when fetching too otherwise the original could expire
pretty sure you can have ilke 1 free privat repo on github these days for testing purposes. |
You can have infinite |
8909b39
to
7859514
Compare
Created some local test cases. Should work fine without issue |
- Use GitHub API for downloading files. - Use installation token when cloning and fetching repositories. - Remove unused function.
7859514
to
40fa4f9
Compare
This fucked up in prod so I gotta figure that out too |
Tested and working! |
worth the weight 🏋️♂️ |
let data = download_url(installation, repo, &filename, &commit).await?; | ||
file.write_all(&data).await?; | ||
Ok(path) | ||
/* local test requires commenting out the .installation(...) call in find_content(), a valid github token with access, and the following dep: actix-rt = "2.9.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah, it could be used for reference for testing
Untested, tell me how.
Closes #26