Repository navigation
refactor(review): scanners and the origin lookup take the caller's directory - #2619
Merged
Merged
Conversation
…rectory The scanner entry points take their target with no '.' default, and get_repo_origin_name requires the root of its repository. The commands give find_repo_root(Path.cwd()) when they get no --repo. The rule review-cwd-read and an invariant test hold both (#2127).
Owner
Author
Test resultsFail first, on a0165a1:
Guard: After the change:
Fail-to-pass skips a |
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.
The scanner entry points and
get_repo_origin_nameno longer read the working directory through a default. The command layer reads it one time and gives it down, as #2098 does for the review.security/take their target with no.default: the five that the issue names, and six more that had the same default.get_repo_origin_namerequires the root of its repository and reads only its origin remote. TheGITHUB_REPOSITORYfallback is gone: each workflow checks out the repository, so none reaches it.devops pr,gh,roadmapandreview prgivefind_repo_root(Path.cwd())when they get no--repo. The check fallback and the PR review helper take that checkout.resolve_branch_pr_numberrequires the owner and the repository.review-cwd-readfailsDEFAULT_CURRENT_PATHand aPath(".")parameter default in the review and scanner modules. An invariant test holds the root of the origin lookup to no default.Closes #2127
Change:
openspec/changes/archive/2026-10-29-2127-scan-dirs-from-caller/