Repository navigation
fix(review): local branch reviews judge the true base; release 1.7.2 - #21
Merged
Merged
Conversation
A path review read the base from the user's refs, so a stale origin/develop or a default of main reviewed the wrong diff. The base is now fetched from GitHub into the review's own copy, and defaults to the open PR's base. Another base starts clean, and a branch with an open PR gets its description, discussion and CI. review_get also returns reviewBody and ci.
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.
A local branch review (
review_startwithpath) could judge a different diff from the PR, because it read the base from the user's own refs. On fox-player-roku,base: developdiffed 118 files instead of 28 on one PR and 42 instead of 9 on another, and a run with no base usedmain.What changes
baseNotessays so.origin/HEAD. A base that differs from the PR's gets a note.origin-https/developmeansdevelopon that remote when it is this repo.jack/wipstays a branch even if a remote is namedjack.review_get: addsreviewBodyandci, and for local reviewsbaseNotesandpullRequest.PR-mode reviews change only by the new
review_getfields.Testing
verify-reviewandverify-review-mcpcover stale refs, foreign remotes, slash-named branches, PR bases, invalid PR bases and stale-review reuse.npm run typecheckpasses.prepareLocalCheckoutran against the real fox-player-roku clone, whoseorigin/*refs are stale. It gave 28 and 9 files, matching GitHub, for each way of naming the base, and the clone's refs did not change.Not tested:
executeLocalend to end in the running app, so the PR lookup and context loading have only been read and type-checked.Bumps the app to 1.7.2.