/review-local variant of code change analysis#1337
Open
labkey-jeckels wants to merge 2 commits intodevelopfrom
Open
/review-local variant of code change analysis#1337labkey-jeckels wants to merge 2 commits intodevelopfrom
labkey-jeckels wants to merge 2 commits intodevelopfrom
Conversation
XingY
reviewed
Apr 15, 2026
| Steps: | ||
| 1. Find the current repo root with `git rev-parse --show-toplevel`, then get its parent directory. List all subdirectories of that parent and probe each with `git -C <dir> rev-parse --git-dir 2>/dev/null` to identify sibling git repositories. | ||
| 2. For each git repository found (including the current one), run the appropriate command: | ||
| 1. Find the repo root with `git rev-parse --show-toplevel` (call it REPO_ROOT). The repos to check are at these known locations — no probing needed: |
Contributor
There was a problem hiding this comment.
Claude is asking to access directory that's parent of root (which is basically my entire user directory), and if I say no, it aborts. This doesn't happen every time, but I'd say 20% of time.
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.
Rationale
We've had success using /review-pr to do automated code reviews of pull requests in GitHub. It would be nice to be able to do the same review locally, before pushing the code or opening the pull request.
Changes
/review-localcommand to get a data-integrity and security-focused code review on local changes/review-prstill produces expected findings on historical PRs @labkey-jeckels