feat(#22): add ability to review local changes without a PR#129
Merged
feat(#22): add ability to review local changes without a PR#129
Conversation
Contributor
Coverage for Python 3.12 •
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
Coverage for Python 3.13 •
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
af02c11 to
4c83415
Compare
Collaborator
Author
|
/lgtm review |
Contributor
There was a problem hiding this comment.
🦉 lgtm Review
Score: Needs Work 🔧
🔍 Summary
Overall, this is a great addition; enabling local reviews is a very useful feature. The implementation is well-structured, introducing a new module for local git repository interactions, and the test coverage for the new logic is commendable.
However, there are a couple of issues that need addressing:
- The
guidecommand doesn't seem to support local repositories, which will lead to a runtime error if a user tries it. This needs to be either fixed or the option disabled for local paths. - There is a broken test in
tests/git/test_repository.pydue to incorrect model instantiation. - I also found a small code quality issue with some dead code.
Once these points are fixed, this PR will be in great shape.
More information
- Id:
ab117b5fbdff4fa3a46c537a7f035ab8 - Model:
gemini-2.5-pro - Created at:
2025-09-10T10:30:27.057943+00:00
Usage summary
- Request count:
2 - Request tokens:
176,319 - Response tokens:
10,110 - Total tokens:
186,429
See the 📚 lgtm-ai repository for more information about lgtm.
8bbf62e to
2eec0ef
Compare
2eec0ef to
023e3a2
Compare
sdn4z
approved these changes
Sep 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now you can review local changes just by passing the path to the git repo to lgtm.
You can also choose what to compare against (
main,HEAD, any ranges, etc.).Example:

closes #22