-
Notifications
You must be signed in to change notification settings - Fork 1
refactor(#52): download gh repo instead of using git clone #62
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
Conversation
|
/lgtm review |
bb07a93 to
8b0416d
Compare
23fd17e to
d488de3
Compare
|
/lgtm review |
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.
🦉 lgtm Review
Score: LGTM 👍
🔍 Summary
The PR is a well-executed refactor that successfully replaces the go-git dependency with a direct download and extraction mechanism. The extraction logic has been correctly moved to a new compress package, promoting code reuse and maintainability. The new Download functionality in both GitHub and GitLab services is properly implemented, including error handling, context with timeouts for HTTP requests, and robust path traversal prevention in the extractor. Comprehensive tests have been added for the GitHub download feature, ensuring its correctness.
Overall, the changes improve the project's dependency footprint, code organization, and maintainability. No major issues were found.
More information
- Id:
6976451242324e6f93090ba757525b37 - Model:
gemini-2.5-flash-preview-05-20 - Created at:
2025-09-18T10:30:40.400968+00:00
Usage summary
- Request count:
2 - Request tokens:
80,108 - Response tokens:
3,407 - Total tokens:
83,515
See the 📚 lgtm-ai repository for more information about lgtm.
d488de3 to
45a985b
Compare
ffcdd54 to
0daac41
Compare
Tested:

We got rid of one dependency (go-git), yay!
As we agreed, I moved the uncompressing thing to its own package.
closes #52