Skip to content

Conversation

@opohorel
Copy link
Collaborator

Fetch commit lists from compare URLs for cherry-pick workflow.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@opohorel
Copy link
Collaborator Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@opohorel opohorel force-pushed the compare_url branch 4 times, most recently from f2730ff to 86ef5d6 Compare November 20, 2025 13:43
Copy link
Collaborator

@ljavorsk ljavorsk left a 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.
@opohorel opohorel merged commit 9906236 into packit:main Nov 21, 2025
7 checks passed
@opohorel opohorel deleted the compare_url branch November 21, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants