-
Notifications
You must be signed in to change notification settings - Fork 22
Support compare URLs in extract_upstream_repository #366
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
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.
Code Review
This pull request adds support for parsing GitHub and GitLab compare URLs in extract_upstream_repository. The implementation correctly identifies the platform, makes the appropriate API calls to fetch commit lists, and includes a robust fallback mechanism. The changes are well-implemented. I've provided one suggestion to refactor a portion of the code to reduce duplication and improve maintainability.
f6abb15 to
99d7d0f
Compare
|
/gemini 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.
Code Review
This pull request adds support for extracting commit lists from GitHub/GitLab compare URLs. The changes involve extending the UpstreamRepository model, updating the tool's description, and adding new logic to parse compare URLs, fetch commit data from the respective APIs, and handle API failures gracefully. The implementation is solid, but I have a few suggestions to improve correctness and maintainability, mainly around URL encoding of parameters and refactoring the main method for clarity. I also noticed some code duplication that could be addressed.
f2730ff to
86ef5d6
Compare
ljavorsk
left a comment
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.
Other than that, LGTM
Fetch commit lists from compare URLs for cherry-pick workflow.
86ef5d6 to
04c6412
Compare
Fetch commit lists from compare URLs for cherry-pick workflow.